Problem making HTTP request - read/change values on device API

I was trying to generate HTTP request to send it with an android app(HTTP Request Widget), but I am not sure what’s the right format of HTTP request with thinger auth key to change certain parameters on a device’s API.

HTTP Request Widget Link : https://play.google.com/store/apps/details?id=com.idlegandalf.httprequestwidget

As shown in API of the device I assume it is possible to make a request with shown data in a certain parameter that the device is streaming.

So I would like to know how to format HTTP request that thinger accepts for changing parameters on the device’s API as well as reading values from the device’s API.

Thanks in advance.

Hello @Matej
This is possible but, remember to create a “device token” for the authorization, because the one that you can see in the “API REST” explorer will be changed in few minutes.

then, create an HTTP request is easy, just copy the yellow rest api and add this: https://apo.thinger.io…/…/…SetTimerLuc?authorization=DEVICE TOKEN
all without spaces, then this should work

hope it helps

1 Like

Shure it helps, thank you.
Forgot to response earlier.
Cherss Matej

Since I started developing apps in MIT app inventor I found a problem with generating a POST request again. But GET requests, I 've got them working, thanks to an earlier explanation form you jtrinc26 based on ?authorization=DEVICE TOKEN.

Because the app that I was using on android (HTTP Shortcuts) was simple to configure so I was able to insert URL, Auth and body separately I 've got POST requests working.

But I stopped using that app because it doesn’t have a database to sync settings to other devices and it was tedious to config every device manually.

So how do I send a body with the POST to include data that I want to send

Here is the program picture from MIT inventor so you can see what I am trying to do in block Tipka_Gor.Click

But i am not shure in witch form the API expects the body to arrive or how should i create the body to send it with the request.
TextBox1 defined on screen1.initialize is my body that i am trying to send for test but with no succes.

Thanks in advance, because i haven’t found that info yet.
Matej