Page 1 of 1

Using PHP with APIs

Posted: Wed Apr 30, 2008 1:52 pm
by danno74
Greetings,

I know little about PHP, so forgive me if I misspeak. :oops:

Alright, we are contracted with Vovici.com and use their hosted survey solution software. They have a set of APIs that allow us to get access to the data in the database. I need to create a front end that allows users to login and see how many surveys they have completed, how many they need to complete, and when they took them.

These APIs look something like this:

Code: Select all

POST /ws/projectdata.asmx HTTP/1.1
Host: efm.sandbox.vovici.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.perseus.com/Pdc.WS/AddResponse"
 
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AddResponse xmlns="http://www.perseus.com/Pdc.WS">
      <projectId>int</projectId>
      <dataString>string</dataString>
    </AddResponse>
  </soap:Body>
</soap:Envelope>
As little as I know about PHP, I know even less about APIs except that Visual Studio uses them very easily. I was told that would be the easiest solution to work with these, but wanted an alternative.

If anyone can point me in the direction of something that might help me use PHP with these APIs, I would appreciate it. I have searched Google but really don't know what I am looking for I guess.

Thanks in advance.

- Dan

Re: Using PHP with APIs

Posted: Wed Apr 30, 2008 2:05 pm
by Christopher

Re: Using PHP with APIs

Posted: Wed Apr 30, 2008 2:35 pm
by danno74
Thank you. I may go the VB route until I get better at PHP, this looks a bit complicated for me at this point.

Re: Using PHP with APIs

Posted: Wed Apr 30, 2008 2:58 pm
by Christopher
I just saw this article. It may be of interest:

http://www.builderau.com.au/program/php ... m?feed=rss