Skip to content

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…

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…