我正在尝试使用 Zend_Rest_Client 访问 Lithium Forum Rest API。此处描述了 API:
http://cl.ly/3N0M2D0k0H3L0Y103Q3R
API 文档给出了示例调用,例如 /boards/id/experimentations/messages/id/938
如何使用 Zend Rest Client 复制此调用并指定每个单独的方法/参数?
我可以通过将整个 URL 放入我的新 Zend_rest_Client($url) 调用中来获得响应,但我希望拥有的不仅仅是控制权,以便我可以传递动态板和类别 ID。
我尝试过类似的东西
$result = $client->arg('categories')->arg2('id')->arg3($cat->string_id)->arg4('boards')->arg5('nested')->get();
并且
$result = $client->categories($cat->string_id)...
但是参数被忽略了。任何人都可以对此有所了解吗?
如果有人想尝试一下,这里有一个实时 API:
http://lithosphere.lithium.com/lithium/restapi/vc/boards/nested