I am trying to get access token from Foursquare API via Python.
I'm using the wrapper from https://github.com/mLewisLogic/foursquare And, followed the same approach mentioned on http://log.hckr.org/2012/02/01/foursquare-api-wrapper-for-python
But, for access_token = client.oauth.get_token('XX_CODE_RETURNED_IN_REDIRECT_XX')
. I get the following error
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "C:\Python27\lib\site-packages\foursquare\__init__.py", line 135, in get_token
response = _request_with_retry(url)
File "C:\Python27\lib\site-packages\foursquare\__init__.py", line 707, in _request_with_retry
return _process_request_with_httplib2(url, data)
File "C:\Python27\lib\site-packages\foursquare\__init__.py", line 733, in _process_request_with_httplib2
raise FoursquareException(u'Error connecting with foursquare API')
FoursquareException: Error connecting with foursquare API
I'm not sure if the error is because of httplib2 library or something else!
Anyone has any solutions?