谷歌的任务位置误差 [英] Google tasks position error

查看:156
本文介绍了谷歌的任务位置误差的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用谷歌的任务API中一个Chrome扩展,
但是当我尝试过做与 previous A组的任务,我得到这样的:

I am trying to use the google tasks api in a chrome extension, but when I try too make a task with ?previous set I get this:

"{
 "error": {
  "errors": [
    {
    "domain": "global",
    "reason": "invalid",
    "message": "Invalid Credentials",
    "locationType": "header",
    "location": "Authorization"
   }
  ],
  "code": 401,
  "message": "Invalid Credentials"
 }
}
"

这是我使用的网址:'https://www.googleapis.com/tasks/v1/lists/@default/tasks?$p$pvious='+lastid 。我使用JavaScript作为我的主要语言。
我愿意给code样品,但只有在必要时。

This is the url I am using: 'https://www.googleapis.com/tasks/v1/lists/@default/tasks?previous='+lastid. I use javascript as my main language. I am willing to give code samples but only if necessary.

推荐答案

尝试在官方的 oauth.sendSignedRequest 像:// code.google.com / p /谷歌的任务 - 铬 - 扩展/来源/浏览/主干/ tasksapi.js#60相对=nofollow>谷歌API的任务Chrome扩展,你应该能够添加 previous 参数在 REQ ['参数']

Try using oauth.sendSignedRequest like in the official google tasks api chrome extension, you should be able to add the previous argument in req['parameters'].

这篇关于谷歌的任务位置误差的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆