I need to use gmail API functions to send an email to somebody. I tried using tokens but i didn't manage, so now im trying with api_key. Please help!
Asked
Active
Viewed 878 times
1 Answers
2
You may refer with this thread. It stated that the access token
needs to be present in the POST
-request you send the mail with. The Oauth2-procotol dictates that you need to either pass along a header Authorization: Bearer <ACCESS_TOKEN>
, or a parameter access_token=<ACCESS_TOKEN>
.
Also make sure that you are generating Credentials for the right app type. If you're using Postman to test Google oAuth 2 APIs, select Credentials->Add credentials->OAuth2.0 client ID->Web Application.

abielita
- 13,147
- 2
- 17
- 59