frog0214 / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Google Analytic returns 401 Unauthorized #598

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.i have refresh token and access token which can be validated by Authenticate.
2. but when i used it with Google.Apis.Analytics.v3.dll but getting error of 
unauthorized but in same a/c with diff. access token and refresh token for 
windows application i can access data.
3.

What is the expected output? What do you see instead?
need to get data instead of 401 error.

What version of the product are you using? On what operating system?
Google.Apis.Analytics.v3.dll and Google.Apis.Authentication.OAuth2.dll

Please provide any additional information below.

Original issue reported on code.google.com by mannshah...@gmail.com on 13 Jun 2012 at 6:21

GoogleCodeExporter commented 8 years ago
Please share your code and detailed steps on how to reproduce this issue

Original comment by ccherub...@google.com on 13 Jun 2012 at 5:09

GoogleCodeExporter commented 8 years ago
Hi,

i am using attached asp.net with C# code for getting access token and fetching 
data of analytic:

1. first i am generating AuthKey on btnGetAuthKey button click event.

2. after getting Authkey i am retrieving Access Token and Refresh Token by 
clicking on Get Access Token button.

3. by clicking on Get Data button fetching data from analytic service with 
generated Access Token and Refresh Token. but getting error of 401 in that.

Note: When i am using same code for windows application with window's Clientid 
and ClientSecret it is fetching data correctly.

Thanks in advance.

Manan Shah

Original comment by mannshah...@gmail.com on 14 Jun 2012 at 5:55

Attachments:

GoogleCodeExporter commented 8 years ago
The Google Analytics API v3 is not supported by this library. Instead, you 
should file your issue on http://code.google.com/p/google-api-dotnet-client/

Sorry I didn't respond earlier.

Original comment by ccherub...@google.com on 3 Sep 2012 at 11:47