Podio PHP问题

问题描述 投票:0回答:1

你好每个人和Podio开发团队,我在podio中有一些问题,因为几天,我将podio集成到客户端项目中,项目是在PHP Codeigniter中,podio API之前完美地工作,但现在有一些问题我得到错误路径找不到'/ item / basic'。“请求网址:http://api.podio.com/item/basic

虽然为了验证代码,我已经检查了旧的代码,这些代码也集成在podio中,并且几天后它们也无法正常工作。我检查了podio网站上的Podio项目:获取项目基本https://developers.podio.com/doc/items/get-basic-item-61768这是不赞成的,但没有提供替代品,我收到有关此错误。

当我评论podio的代码和网站工作,但当我取消注释podio的代码并运行它它显示错误,因为几天,我已经尝试了所有步骤并交叉检查,如果代码错误没有错误,因为相同的代码工作之前,旧代码也检查了哪些工作现在没有工作。请帮助我,谢谢你。附上截图

致命错误:未捕获PodioNotFoundError:“找不到匹配的操作。找不到路径'/ item / basic'。”请求URL:http://api.podio.com/item/basic堆栈跟踪:#0 /home/username/public_html/podio-php-4.3。 0 / lib / Podio.php(351):Podio :: request('GET','/ item // basic',Array,Array)#1 /home/username/public_html/podio-php-4.3.0/models /PodioItem.php(120):Podio :: get('/ item // basic',Array)#2 /home/username/public_html/st_application/controllers/user.php(1459):PodioItem :: get_basic(NULL) #3 /home/username/public_html/st_application/controllers/user.php(901):User-> podioPropertyCreate(336,Array,Array,Array,Array,'3 Females,1 Ma ...','uploads / files /',Array,'jahanzeb @ gmail ....')#4 [内部函数]:User-> add_property('add')#5 /home/username/public_html/st_system/core/CodeIgniter.php(360) :call_user_func_array(Array,Array)#6 /home/username/public_html/index.php(202):require_once('/ home / username ...')#7 {main}抛出/ home / username / public_html / podio -php-4.3.0 / lib / Podio.php上线324

这是问题形象: This is the issue image

php podio
1个回答
1
投票

你没有通过API调用传递item_id

enter image description here

对于PodioItem::get_basic API调用,item_id参数(第一个参数)是必需的。

另外,请注意这个get_basic operation is deprecated and will be removed soon

请改用Podio Get Item API。

© www.soinside.com 2019 - 2024. All rights reserved.