Using PHP with APIs

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
danno74
Forum Newbie
Posts: 2
Joined: Wed Apr 30, 2008 1:41 pm

Using PHP with APIs

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Using PHP with APIs

Post by Christopher »

(#10850)
danno74
Forum Newbie
Posts: 2
Joined: Wed Apr 30, 2008 1:41 pm

Re: Using PHP with APIs

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Using PHP with APIs

Post by Christopher »

I just saw this article. It may be of interest:

http://www.builderau.com.au/program/php ... m?feed=rss
(#10850)
Post Reply