Python

ThingsOn HTTP API / Python

Python programlama dilini kullanarak platformdan veri sorgulamak için aşağıdaki örneği kullanabilirsiniz.

Read
import http.client
conn = http.client.HTTPConnection("cloud,thingson,io")
payload = ""
headers = {
'Authorization': "Basic [API_KEY]",
}
conn.request("GET", "query", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))