Skip to content

Ask HN: Using the Socialcast API using PHP?

1 pointjrsmith12791 comment
On HN

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 emily@socialcast.com/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/

Comments

I figured it out. Using the username/password as part of the URL string (i.e. https://emily@socialcast.com:demo@demo.socialcast.com/api/me...) worked. I'm sure that there's a better way to do this, but this is just for fun anyways.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.