TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Using the Socialcast API using PHP?

1 pointsby jrsmith1279almost 12 years ago
Can someone help me understand how to use Socialcast&#x27;s API with PHP? I&#x27;d like to grab the data from this URL - https:&#x2F;&#x2F;demo.socialcast.com&#x2F;api&#x2F;messages&#x2F;search.xml?q=enterprise (note: the demo username&#x2F;password are emily@socialcast.com&#x2F;demo) using PHP so that I can format it and display it, but I&#x27;m not sure how to go about doing that.<p>The documentation for their API is below and unfortunately they don&#x27;t provide any code samples:<p>http:&#x2F;&#x2F;developers.socialcast.com&#x2F;api-documentation&#x2F;api&#x2F;messages&#x2F;search&#x2F;

1 comment

jrsmith1279almost 12 years ago
I figured it out. Using the username&#x2F;password as part of the URL string (i.e. <a href="https://emily@socialcast.com:demo@demo.socialcast.com/api/messages/search.xml?q=enterprise" rel="nofollow">https:&#x2F;&#x2F;emily@socialcast.com:demo@demo.socialcast.com&#x2F;api&#x2F;me...</a>) worked. I&#x27;m sure that there&#x27;s a better way to do this, but this is just for fun anyways.