gmail - Gamil API get information from a wrong account -


i met weird situation. following tutorial below link retrieve information https://developers.google.com/gmail/api/quickstart/dotnet#step_1_turn_on_the_api_name

in browser, login in gmail of account a, in program using client_serect.json account b, also, using account b userid. however, when test it, program , display information of account a. how can information account b???

the client_secret.json contains information identifies application @ google.

{   "web": {     "client_id": "[[your_client_id]]",     "client_secret": "[[your_client_secret]]",     "redirect_uris": [],     "auth_uri": "https://accounts.google.com/o/oauth2/auth",     "token_uri": "https://accounts.google.com/o/oauth2/token"   } } 

you don't need separate 1 each user.

you need store access_token , potential refresh_token of each user, , use them separately.

read the official documentation on how can implemented.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -