From ef01788f54abfe1f71ba0a236aabb03e9ce697f7 Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Fri, 18 Jul 2025 13:31:25 -0600 Subject: [PATCH] Added models API endpoint documentation Necessary to explain what this endpoint is, why it's important, and how to use it. Milestone: minor --- README.adoc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.adoc b/README.adoc index 9504d8c..77bc435 100644 --- a/README.adoc +++ b/README.adoc @@ -174,6 +174,36 @@ client.log token: "secret", You'll either get a 204 No Content or 200 OK response depending on if the device exists or not. +==== Models + +Allows you to obtain the model information for all devices and screens. Example: + +[source,ruby] +---- +client = TRMNL::API::Client.new +client.models + +# Success( +# # +# ) +---- + +ℹ️ The `scale_factor` can be an integer or float. + ==== Setup Allows you to obtain the setup response for when a new device is setup. You must supply your device's MAC Address as the `id`. Example: