Hello,
when I am trying to integrate with the API, I am running in to some problems.
Both when i use CURL and get requests in python I get the following error:
{‘head’: {‘status’: 403, ‘ok’: False, ‘messages’: , ‘errors’: [‘Access to the requested resource is forbidden. Invalid User or Token’], ‘references’: {}}, ‘body’: {}}
My code looks like this (with XXXX and company_name filled out):
import requests
URL = “https://octave-api.sierrawireless.io/v5.0/<COMPANY_NAME>/device/?only=id,name”
user = ‘XXXX’
token = ‘XXXX’
PARAMS = {‘X-Auth-User’:user, ‘X-Auth-Token’: token}
r = requests.get(url = URL, params = PARAMS)
data = r.json()
print(data)