用于检索 Podio 项目的 http 请求的完整 URI
Full URI for http request to retrieve Podio item
所以我是跑道的新手,在弄清楚如何进行身份验证后,我正在尝试进行第一个 API 呼叫。
我认证成功如下:
https://podio.com/oauth/token?grant_type=refresh_token&client_id=<client_id>&client_secret=<client_secret>&refresh_token=<refresh_token>
我去 https://developers.podio.com/doc/items/get-item-22360
测试检索项目,我能够正确检索我的项目。
现在给定我的项目 445614135 并且您通过调用 /item/445614135
在 URL 中在此之前检索项目?换句话说,如果我想从 JQuery 调用,完整的 URI 是什么?
非常感谢任何帮助,在此先感谢。
编辑
根据下面使用 app_token 的回答,我尝试了建议的 POST 请求,但我得到了以下信息:
{
"error_parameters": {},
"error_detail": null,
"error_propagate": false,
"request": {
"url": "http://api.podio.com/item/445614135/",
"query_string": "oauth_token=***",
"method": "POST"
},
"error_description": "No matching operation could be found. The path '/item/445614135/' was not found..",
"error": "not_found"
}
明明我瞎了app_token。
您可以向此URL,
请求获取商品详情
https://api.podio.com/item/445614135/?oauth_token=your_auth_token
URL“https://developers.podio.com/doc/items/get-item-22360”,说明getItem方法不是POST,它的GET方法。
您使用的是JS sdk客户端库吗?
如果您正在使用客户端库,您可以从 ItemAPI 调用 getItem 方法
所以我是跑道的新手,在弄清楚如何进行身份验证后,我正在尝试进行第一个 API 呼叫。
我认证成功如下:
https://podio.com/oauth/token?grant_type=refresh_token&client_id=<client_id>&client_secret=<client_secret>&refresh_token=<refresh_token>
我去 https://developers.podio.com/doc/items/get-item-22360
测试检索项目,我能够正确检索我的项目。
现在给定我的项目 445614135 并且您通过调用 /item/445614135
在 URL 中在此之前检索项目?换句话说,如果我想从 JQuery 调用,完整的 URI 是什么?
非常感谢任何帮助,在此先感谢。
编辑
根据下面使用 app_token 的回答,我尝试了建议的 POST 请求,但我得到了以下信息:
{
"error_parameters": {},
"error_detail": null,
"error_propagate": false,
"request": {
"url": "http://api.podio.com/item/445614135/",
"query_string": "oauth_token=***",
"method": "POST"
},
"error_description": "No matching operation could be found. The path '/item/445614135/' was not found..",
"error": "not_found"
}
明明我瞎了app_token。
您可以向此URL,
请求获取商品详情https://api.podio.com/item/445614135/?oauth_token=your_auth_token
URL“https://developers.podio.com/doc/items/get-item-22360”,说明getItem方法不是POST,它的GET方法。
您使用的是JS sdk客户端库吗?
如果您正在使用客户端库,您可以从 ItemAPI 调用 getItem 方法