G
G
Grigory Vasilkov2017-04-15 00:11:13
Google
Grigory Vasilkov, 2017-04-15 00:11:13

How to receive emails from Gmail API through a service account?

Logged into the Google Api console
Enabled the Gmail API
Created a service account
Downloaded the access file
Wrote a script strictly according to the instructions (according to this instruction, Google Spreadsheets Api works for me through the service account)
I call the Gmail Api method...
For some reason I get 400 Bad Request
Could it be that letters from a specific person cannot be received through a service account, but is it necessary to do tokenization with oauth2?
Otherwise, it is not clear to me why 400 Bad Request, since the official release lib is used.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2017-04-15
@gzhegow

gmyl works fine via IMAP, if that

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question