开发者

Pass parameters to xml using ZEND REST

开发者 https://www.devze.com 2023-02-08 12:31 出处:网络
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:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消