News for hackers. Stuff that matters.

Ask HN: Using the Socialcast API using PHP?

Can someone help me understand how to use Socialcast's API with PHP? I'd like to grab the data from this URL - https://demo.socialcast.com/api/messages/search.xml?q=enterprise (note: the demo username/password are [email protected]/demo) using PHP so that I can format it and display it, but I'm not sure how to go about doing that.

The documentation for their API is below and unfortunately they don't provide any code samples:

http://developers.socialcast.com/api-documentation/api/messages/search/

( 1 comment | on HN )
Re:Ask HN: Using the Socialcast API using PHP? by jrsmith1279 on Tuesday July 02, 2013 @07:38PM (#5981434)
I figured it out. Using the username/password as part of the URL string (i.e. https://[email protected]:[email protected]/api/me...) worked. I'm sure that there's a better way to do this, but this is just for fun anyways.