I tried using this from Google's page (the xxx would be the key I got from https://console.developers.google.com/ - Web Client client OAuthID):
https://accounts.google.com/o/oauth2/v2/auth?
scope=email%20profile&
state=%2Fprofile&
redirect_uri=https%3A%2F%2Foauth2.example.com%2Foauthcallback&
response_type=token&
client_id=xxx
I don't know what to put for redirect_uri
, as well as scope
and state
. I wanted to access a spreadsheet which I could read and write to. Reading seems to be easy, I could just make a GET request and read but writing needs a token. I tried playing with it on OAuth 2.0 Playground. I clicked some buttons and got a token then I tried it with Postman and it works, I could write to the spreadsheet. The only problem is the token expires and I'm not sure how to request a token each time I wish to write. Or is there a way to get a token that doesn't expire? Please let me know if there's anything I could provide. I've been trying a lot of things for a few days a can't seem to get it to work. I also couldn't find anything that could help me.