show data from API

higgle 12 Jul, 2013
I'm using an API to get some data back from a server by sending an HTTP Post.

I can see that the data is coming back perfectly but I don't know how to show it on the site.

Any ideas what I need to do?
GreyHead 12 Jul, 2013
Hi higgle,

How do you know it is coming back OK? Normally I think this would be an asynchronous transaction so I'd expect it to be handled through a custom event using Ajax but I know very little about using HTTP requests like this?

Bob
higgle 12 Jul, 2013
Hi Bob,
I can see that it's coming in fine either: (a) by looking at the debug contents, or (b) if I take the HTTP Post URL and put it straight into the browser.

The data seems to return as an xml document. Looking at this I'm guessing I need to figure out how to parse the xml perhaps?
GreyHead 13 Jul, 2013
Hi higgle,

The SimplePie(?) PHP library lets you parse a simple XML file.

Bob
This topic is locked and no more replies can be posted.