ASP.NET Tasks API – OAuth2 Sample
Click the button below to authorize this application/list all TaskLists and Tasks.
The request 'Google.Apis.Requests.Request(list @ https://www.googleapis.com/tasks/v1/users/@me/lists)' has failed. The service tasks has thrown an exception: Google.GoogleApiRequestException: Google.Apis.Requests.RequestError
Not Found [404]
Errors [
Message[Not Found] Location[ - ] Reason[notFound] Domain[global]
]
---> System.Net.WebException: 远程服务器返回错误: (404) 未找到。
在 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
在 Google.Apis.Requests.Request.InternalEndExecuteRequest(IAsyncResult asyncResult) 位置 c:\code.google.com\google-api-dotnet-client\default_release\Tools\BuildRelease\bin\Debug\output\default\Src\GoogleApis\Apis\Requests\Request.cs:行号 311
--- 内部异常堆栈跟踪的结尾 ---
在 Google.Apis.Requests.Request.AsyncRequestResult.GetResponse() 位置 c:\code.google.com\google-api-dotnet-client\default_release\Tools\BuildRelease\bin\Debug\output\default\Src\GoogleApis\Apis\Requests\Request.cs:行号 285
在 Google.Apis.Requests.ClientServiceRequest`1.GetResponse() 位置 c:\code.google.com\google-api-dotnet-client\default_release\Tools\BuildRelease\bin\Debug\output\default\Src\GoogleApis\Apis\Requests\ClientServiceRequest.cs:行号 179
在 Google.Apis.Requests.ClientServiceRequest`1.Fetch() 位置 c:\code.google.com\google-api-dotnet-client\default_release\Tools\BuildRelease\bin\Debug\output\default\Src\GoogleApis\Apis\Requests\ClientServiceRequest.cs:行号 199
在 Tasks.ASP.NET.SimpleOAuth2._Default.FetchTaskslists() 位置 F:\download\google-api-dotnet-client-1.3.0-beta.samples\Tasks.ASP.NET.SimpleOAuth2\Default.aspx.cs:行号 125
© 2011 Google Inc
我做了样本测试,得到了这个。这有什么错呢?任务接口已经打开,我有权限,但是无法拉取任务列表,为什么?
发布于 2013-05-10 22:50:14
您的应用程序应注册为here。
并且应该为您发送访问令牌以获取数据的作用域进行注册。检查链接,注册应用程序并获取您的客户端凭据。然后注册相关的作用域。
并在您的问题中添加更多信息!你用的是什么,代码是什么等等,
https://stackoverflow.com/questions/16484837
复制相似问题