简体   繁体   English

从 podio api 获取所有项目

[英]get all items from podio api

I want to fetch items of app from podio in node js here is the code that am using to get items,我想从节点 js 中的 podio 获取应用程序项目,这是用于获取项目的代码,

 podio.authenticateWithCredentials(username, password, function () {
        podio.request('GET', '/item/app/{app_id}/filters').then(function (responseData) {
          console.log(responseData);
          res.send(responseData);
        }).catch(function (e) {
          console.log('0-0-0-0', e);
          res.send(e);
        });
      });

an i always get this error我总是收到这个错误

"No matching operation could be found. The path '/item/app/{app_id}/filters' was not found.."

is there any solutions ?有什么解决办法吗?

您需要将这个 url '/item/app/{app_id}/filters'您必须从 podio api 获得的实际 url。

only replace {app_id} with the app id To get the app id and token:仅将{app_id}替换为应用程序 ID 以获取应用程序 ID 和令牌:

Go to your app on Podio Click the little wrench in the sidebar Select the "Developer" option near the bottom On the following page you can get the app id and token转到您在跑道上的应用 单击侧栏中的小扳手 选择底部附近的“开发人员”选项 在下一页上,您可以获得应用 ID 和令牌

在此处输入图片说明

您应该使用POST而不是GET方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM