How to reuse a stored access_token for gmail api access

137 views
Skip to first unread message

kpg

unread,
Sep 7, 2015, 1:56:57 PM9/7/15
to GTM OAuth 2 Discussion
So I've sent the user through the authentication process, they have allowed my web site to access their gmail account.

I now have an access token in json format along with a refresh token, which I store in my database.

Now I want to send an email using the gmail RESTful api and the used access token

All of the google documentation examples seem to start the authorization process with the assumption that user authorization is needed. They build a usercredential object using methods takes the client.json secrets and a call the authorization page and returns the credentials ready to use by the api.

My problem is I have already done that, I have the access token josn in my possession, and I want to build a usable usercredential from it.

How would I do that?


Which is very similar to what I want to do.

Thanks for any help.

Greg Robbins

unread,
Sep 7, 2015, 2:58:51 PM9/7/15
to gtm-o...@googlegroups.com
General support for the Gmail API is available at https://developers.google.com/gmail/api/support

This discussion group is just for use of the GTM OAuth 2 library on iOS and Mac.

Reply all
Reply to author
Forward
0 new messages