You can query the API to get the list of devices of a subscription.
Request
The following is a cURL example of making a
request with GET.
curl -L -X GET 'https://api.eu.platform.xweather.com/device-api/v1/devices' \
-H 'Accept: application/json' \
-H 'X-API-KEY: <API_KEY_VALUE>'
Authorization
type: apiKey
name: X-API-KEY
in: header
Request example in Python using API key
import requests
url = "https://api.eu.platform.xweather.com/device-api/v1/devices"
payload={}
headers = {
'Accept': 'application/json',
'X-API-KEY': 'aur_sit_01JBKWXTRVM1N2D9ZJV2KXC7F8.cAcuYIRk9QugIDdNk87yCKfUMJpzQ-47WFFv_ABMw-Rl5o4POmrElMnQ43T1J-rY'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)