yndx-metrika/logs_api_integration

Oauth token must be passed in headers (not just in url)

Closed this issue · 1 comments

Since recently API requires that oauth token is passed in headers, not just in url. And now every request to API fails with the message "user not authorized".

The problem can be easily fixed by passing oauth token in the request headers. E.g. r = requests.get(url, headers={'Authorization': 'OAuth ' + user_request.token})

Apparently was fixed by #13

Thanks @lan143 and @miptgirl !