[英]Full URI for http request to retrieve Podio item
So I am new to Podio and after I have figured how to authenticate, I am trying to make my first API call. 所以我是Podio的新手,在我想出如何进行身份验证之后,我正在尝试进行第一次API调用。
I succeeded in authenticating as follows: 我成功进行了如下身份验证:
https://podio.com/oauth/token?grant_type=refresh_token&client_id=<client_id>&client_secret=<client_secret>&refresh_token=<refresh_token>
I went to https://developers.podio.com/doc/items/get-item-22360
to test retrieveing an item, and I was able to retrieve correctly my item. 我去
https://developers.podio.com/doc/items/get-item-22360
测试检索项目,我能够正确检索我的项目。
Now given my item 445614135 and that you retrieve an item by the call /item/445614135
what precede this in the URL? 现在给出我的项目445614135并且您通过调用
/item/445614135
检索项目在URL之前的/item/445614135
是什么? In other words what would be the full URI if I want to do call from JQuery? 换句话说,如果我想从JQuery调用,那么完整的URI是什么?
I appreciate any help, thanks in advance. 我感谢任何帮助,提前谢谢。
EDIT 编辑
According to the answer below using the app_token , I tried the POST request suggested, but I got back the following: 根据以下使用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"
}
Obviously I blinded the app_token. 显然我对app_token不知情。
您可以通过请求此URL来获取项目详细信息,
https://api.podio.com/item/445614135/?oauth_token=your_auth_token
The URL " https://developers.podio.com/doc/items/get-item-22360 ", shows getItem method is not POST, its GET method. URL“ https://developers.podio.com/doc/items/get-item-22360 ”,显示getItem方法不是POST,它的GET方法。
Are you using JS sdk client library? 你在使用JS sdk客户端库吗?
If you are using client library, you can call getItem method from ItemAPI 如果您使用的是客户端库,则可以从ItemAPI调用getItem方法
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.