luantn2 / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

How to create a instance of UserCredential if I already have the value of Access Token? #497

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Google APIs Auth Client Library 1.9.0, Google.Apis.Analytics.v3 Client Library 
1.9.0.1010

How to create an instance of Google.Apis.Auth.OAuth2.UserCredential if I 
already have the value of Access Token? 

Platform: Windows

In my case, I don't have the ClientID and ClientSecret in hand. Account is 
authenticated by another method (is secret to me) (I only have the value of 
Access Token, Refresh Token returned by that method). And I would like to 
create an instance of UserCredential with it, then pass to create a new 
instance of Google.Apis.Analytics.v3.AnalyticsService. I cannot find any 
instruction to do that.

Thank you.

Original issue reported on code.google.com by nhchung...@gmail.com on 10 Oct 2014 at 10:48