Closed GoogleCodeExporter closed 9 years ago
I belive there has been some changes to authentication at the server end. I
would try following the code in the samples, either for asp.net
http://code.google.com/p/google-api-dotnet-client/source/browse/Tasks.ASP.NET.Si
mpleOAuth2/Default.aspx.cs?repo=samples#72
Or for a native application:
http://code.google.com/p/google-api-dotnet-client/source/browse/Tasks.CreateTask
s/Program.cs?repo=samples#47
Hope that helps.
Original comment by davidwat...@google.com
on 5 Oct 2012 at 2:34
[deleted comment]
Same issue for me, using version 1.2.4737.
It worked with version 1.1.4344. :
var auth = new OAuth2LeggedAuthenticator("ConsumerKey", "ConsumerSecret",
"UserLogin", "Domain"); // userLogin does not contain '@domain'
var _service = new CalendarService(auth);
_service.Key = this.APIKey; // created in API Console
CalendarListResource.ListRequest request = _service.CalendarList.List();
CalendarList feed = request.Fetch();
throws:
Google.Apis.Requests.RequestError
Invalid Credentials [401]
Errors [
Message[Invalid Credentials] Location[Authorization - header] Reason[authError] Domain[global]
]
Original comment by madike...@gmail.com
on 15 Jan 2013 at 8:45
Original issue reported on code.google.com by
Anthony....@gmail.com
on 1 Oct 2012 at 9:27