Closed ocafebabe closed 3 years ago
Hello,
I'm trying to query the PD Analytics API but I get a permission error: API responded with non-success status (403)
API responded with non-success status (403)
Based on the documentation, it seems that we have to pass the X-EARLY-ACCESS header in order to use it.
Is there a way to do this using this client?
Thanks
Never mind, I was able to call the API using the "get" method directly, e.g.:
analytics = session.get('/analytics/raw/incidents/%s' % (i['id']), headers={'X-EARLY-ACCESS': 'analytics-v2'})
Hello,
I'm trying to query the PD Analytics API but I get a permission error:
API responded with non-success status (403)
Based on the documentation, it seems that we have to pass the X-EARLY-ACCESS header in order to use it.
Is there a way to do this using this client?
Thanks