首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Tasks.ASP.NET.SimpleOAuth2获取任务列表错误

Tasks.ASP.NET.SimpleOAuth2获取任务列表错误
EN

Stack Overflow用户
提问于 2013-05-10 22:40:58
回答 1查看 431关注 0票数 0
代码语言:javascript
运行
复制
    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

我做了样本测试,得到了这个。这有什么错呢?任务接口已经打开,我有权限,但是无法拉取任务列表,为什么?

EN

回答 1

Stack Overflow用户

发布于 2013-05-10 22:50:14

您的应用程序应注册为here

并且应该为您发送访问令牌以获取数据的作用域进行注册。检查链接,注册应用程序并获取您的客户端凭据。然后注册相关的作用域。

并在您的问题中添加更多信息!你用的是什么,代码是什么等等,

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16484837

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档