API Reference v1 (Legacy)
Data Format
User Token
Device Token
import subprocess
CONNECT_AGENT_PATH = "/etc/connect/service/ConnectAgent"
AGENT_FLAG_TO_GET_DEVICE_TOKEN = "--print-token"
user_token = "Your user token can be found in the Connect UI"
device_token = subprocess.check_output(CONNECT_AGENT_PATH + ” ” + AGENT_FLAG_TO_GET_DEVICE_TOKEN, shell=True)#! /bin/bash
/etc/connect/service/ConnectAgent --print-tokenLast updated
Was this helpful?

