mousaalsulaimi
3 years agoContributor
HTTP/1.1 401 Unauthorized when calling Analytics Reports API
Hi , I'm trying to call a simple API call to one for the Analytics Reports API. My problem Is that I keep HTTP/1.1 401 Unauthorized and the actual message is : {"status":"FAIL","requ...
- 3 years ago
Hello mousaalsulaimi
You can use HTTPBasicAuth => HTTPBasicAuth(user, password)
requests.post(request_url, auth=HTTPBasicAuth(user, password))
Please refer to these docs that might be helpful to you:
https://developer.khoros.com/khoroscaredevdocs/docs/about-analytics-reports
https://developer.khoros.com/khoroscaredevdocs/docs/beginners-guide-to-the-analytics-reports-api
https://developer.khoros.com/khoroscaredevdocs/docs/get-started-with-the-analytics-reports-api
- 3 years ago
mousaalsulaimi, if you find this post helpful and if it answers your query, please mark it as an accepted solution. Thank you!