Hi,
So the REST API calls work great with out the URL appended to the URL.However
as soon as I do add the URL, because I want to retrieve the data on a daily
basis, the calls fail and the server will return a 401 and say signature
invalid.The code is below:
import oauth2 as oauth
import time
Sorry about the typo I meant append the date to the URL. So at the end of the
current URL adding ?date=ddmm. But I will go through the documentation to
see if I missed anything, but as far as I remember it said to just append the
date in that format.
--
https://mail.python.org/mailman/listi
Found a solution. For query string you have to add it to both the http_headers
dictionary AND to the URL when making the Request.
old line:
http_headers = {}
http_headers['oauth_version'] = '1.0'
new line:
http_headers = {}
http_headers['date'] = 'ddmm' #add this line
http_headers['oauth_v
Found a solution. For query string you have to add it to both the http_headers
dictionary AND to the URL when making the Request.
old line:
http_headers = {}
http_headers['oauth_version'] = '1.0'
new line:
http_headers = {}
http_headers['date'] = 'ddmm' #add this line
http_headers['oaut