Hi! I'm not getting a valid reply for my authentication request. I'm not getting a response with code 200 for my GET request. Generally getting 401 or 404 errors. Could you help me out here? Here's my code:
username = ZENDESK_EMAIL
url = 'https://www.zopim.com/api/v2'
response = requests.get(url, auth=(username, password))
# Check for HTTP codes other than 200
if response.status_code != 200:
print('Status:', response.status_code, 'Problem with the request. Exiting.')
Please sign in to leave a comment.