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.