I'm trying to access a Lithium Forum Rest API using Zend_Rest_Client. The API is described here:
http://cl.ly/3N0M2D0k0H3L0Y103Q3R
The API docs give example calls such as e.g. /boards/id/experimentations/messages/id/938
How can I replicate this call Using Zend Rest Client and specifying each individual method / parameter?
I can get a response by putting the entire URL in my new Zend_rest_Client($url) call but I want to have more than control so that I can pass dynamic board and category ids.
I have tried something like
$result = $client->arg('categories')->arg2('id')->arg3($cat->string_id)->arg4('boards')->arg5('nested')->get();
and also
$result = $client->categories($cat->string_id)...
But the parameters are ignored. Can anyone shed any light on this?
If anyone wanted to try it, there is a live API here:
http://lithosphere.lithium.com/lithium/restapi/vc/boards/nested
looks like this particular API is not compatible with Zend_Rest_Client as it doesn't seem to support methods and parameters in the URI as the client expects. The solution is to build dynamic URLS to call via GET or use POST parameters