I am using the POST request to get an new access token from this link.
When clicking <get app key and secret> I get a single string value. With these values I am running this POST request using Python's requests library. The error message I get is: Error in call to API function "auth/token/from_oauth1": Invalid value in HTTP header "Authorization": " Basic <my app key and secret> ".
headers = {
'Authorization': 'Basic <get app key and secret>',
'Content-Type': 'application/json',
}
data = '{"oauth1_token":"<some pre-generated value> ","oauth1_token_secret":"<some other pre-generated value> "}'
response = requests.post('https://api.dropboxapi.com/2/auth/token/from_oauth1', headers=headers, data=data)
Please help.
Thanks in advance.