In this provided Python code in this quickstart, it using credentials.json such in this line: I have enabled the Sheet and Drive API. I created credentials from the APIs & Services menu, then on the Credentials tab, click on the CREATE CREDENTIALS button, then click on the OAuth client ID, and on the Appl…
Tag: google-oauth
Using gmail through python without smtp
As of may 30th, smtp is no longer accepted. https://support.google.com/accounts/answer/6010255?hl=en&ref_topic=7188673 What is the new way to make a simple python emailer rather than a full application with the “login with google” option? Not sure why I was asked for the code and error, given …
Authorisation Error 400: redirect_uri_mismatch – cannot generate needed token files for the ezsheets module
I need to use the ezsheets module which requires the use of both Google Drive and Google Spreadsheets APIs. I enabled them and have managed to gain the required credentials, which I passed in the python project folder. According to Google Spreadsheets documentation, the next step should be gaining the two req…
Is refreshing the OAuth refresh token standard behavior?
I’m implementing an API wrapper for an OAuth API (in particular, TD Ameritrade) and I’ve encountered an interesting piece of functionality. Unlike most OAuth implementations I’ve seen, in which refresh token is valid for some time period and then the user has to re-authenticate, this API sup…
How can I get an oauth2 access_token using Python
For a project someone gave me this data that I have used in Postman for testing purposes: In Postman this works perfectly. Auth URL: https://api.example.com/oauth/access_token Access Token URL: https://api.example.com/access_token client ID: abcde client secret: 12345 Token name: access_token Grant type: Clie…