Search code examples
phpapibasic-authentication

Using the Socialcast API using PHP?


Can someone help me understand how to use Socialcast's API with PHP? I'd like to grab this data (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/


Solution

  • You can get a remote file by using file_get_contents(); .
    This commands allow you to fetch any local/remote file. You can also do this with the fopen(); function.
    But the best solution for more advanced queries would be CURL