I want to develop an app using the api provided by pastebin.com , using php . What I am not able to figure out is which web service like SOAP , etc , should be used to do this work ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The documentation says to submit a POST request, which means this is a REST-ful HTTP interface. No SOAP, no WSDLs, just HTTP like web browsers work.
All you need is some code capable of sending HTTP requests.
In PHP, the simplest one that comes with most installs is the cURL library.
Example of sending a POST is in the second comment of the manual page:
http://www.php.net/manual/en/function.curl-exec.php