0

i have both refresh token and access token in my Google-drive API. but i don't want to request a new access token each time when user use my API for that i store my refresh token. how can i get new access token from refresh token

kdrathor
  • 11
  • 4
  • You posted this question twice, please delete this one. – Ali Afshar Jun 07 '13 at 14:51
  • possible duplicate of [How do I generate an access token from a refresh token for the Google Drive API?](http://stackoverflow.com/questions/16983626/how-do-i-generate-an-access-token-from-a-refresh-token-for-the-google-drive-api) – Cheryl Simon Jun 07 '13 at 17:00

1 Answers1

0

You should try this one

   authCode = "Your Refresh Code";
    IAuthorizationState = client.ProcessUserAuthorization(authCode, state);
Ramesh Karna
  • 816
  • 1
  • 7
  • 24