Hi there,
I'm trying to send a get request to the car2go API using the request module.
Here's the code
import requests
url = "https://www.car2go.com/api/v2.1/vehicles?loc=berlin&oauth_consumer_key=XXX&format=json"
print url
car_list = requests.get(url)
Unfortunately, I'm getting the following error:
requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.car2go.com', port=443): Max retries exceeded with url: /api/v2.1/vehicles?loc=berlin&oauth_consumer_key=XXX&format=json (Caused by ProxyError
('Cannot connect to proxy.', error('Tunnel connection failed: 403 Forbidden',)))
I found that some people had similar problems with non-whitelisted hosts. However, in my understanding that only applies to non-paying users and that paying users don't have such restrictions.
Any help is greatly appreciated!