Settings

Theme

Ask HN: Using the Socialcast API using PHP?

1 points by jrsmith1279 12 years ago · 1 comment · 1 min read


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/

jrsmith1279OP 12 years ago

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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection