User Manual

www.dragino.com
LoRa Gateway User Manual ---Update:2017-11-07 43 / 67
9.3.1 Try RESTful API call in web
We can see the API from ThingSpeak page as below:
As above, the API call to update a channel feed is as below:
GET https://api.thingspeak.com/update?api_key=B9Z0R25QNVEBKIFY&field1=0
In above API call, there are three variables:
api_key: Define on which channel you will upload the data.
Field: Each channel have max 8 fields, Field1 , Field2 define which exactly field to be updated
Value: Field1=0, means update the Field1 with value 0.
To test this API call, we can simply put the URL in web browser and test. For example, below
shows the action to set the field1 data to 34, and we can see the result immediately in the
private view.
Result is as below: