Iam developing a REST service using ZEND, and iam new to it. This is my scenario:
The users will be sending their API key and password to a particular xml file, using curl, like:
curl -u key:pass https://my_site/api/v1/points.xml
and inturn, they will receive an xml response. I want to know how to send parameters to an xml file using REST in zend framework, which method i have to use (get/post/put) and how to get the response.
Did any开发者_JS百科one try REST with ZEND and xml?
You should not be sending parameters to an xml file, but to a REST service listener (which should be a scripting code in PHP). The result you get might be in XML
精彩评论