Device state
get
https://api.connect.jfrog.io/v1/
get_device_state
Device state

Example

Python
import json
import requests
json_content = {'device_id': 'd-1234-abcd',
'user_token': 'YYYYYYYYYYYYYYY'}
call_request = requests.get("https://api.connect.jfrog.io/v1/get_device_state", json=json_content)
call_response = json.loads(call_request.text)
if call_request.status_code != 200:
if call_request.status_code == 429:
error = "API limit reached"
else:
error = call_response["error_message"]
print(error)
else:
device_status = call_response["message"]["device_status"]
device_id = call_response["message"]["device_id"]
Copy link