MySpace PHP SDK
Whether you are hosting an application on your own server or working with an OpenSocial app hosted by MySpace, you can use elements of this Software Development Kit (SDK) to make calls to the MySpace Application Programming Interface (API). This API provides access to a variety of MySpace features and data.
If you have registered an application hosted on your server as a MySpaceID app, this SDK shows you how to implement the OAuth secure access protocol. The immediate benefit is that your app’s users will be able to log in to your application using their familiar MySpace account info, rather than having to set up and remember yet another username and password. The greater benefit is that your MySpaceID app can access MySpace data through the MySpace APIs.
All MySpace applications — both MySpaceID-registered apps and MySpace-hosted apps — can access MySpace data through the MySpace APIs. Information about MySpace applications is available at the Wiki page titled What are MySpace Applications?.
To use the MySpace API in your own projects, you first need to register on the MySpace Developer Site. Follow the instructions in this site to create an app; you'll get a consumer key and secret.
The MySpace PHP SDK enables you to work with MySpace data using the OpenStack (OpenID, OAuth etc) and the MySpace REST APIs via easy-to-use high level interfaces.
This SDK project contains examples of the base API code necessary to make signed requests against the MySpace REST API. See the PHP SDK source code directory.
The best way to implement your own application is take an existing sample and customize it. We have provided a few simple examples. Please let us know how we can improve the code as we go forwards.
Working Examples in this SDK:
- OAuth - make signed requests
- OpenID + OAuth Hybrid - delegated login, and making signed requests
Samples in Development:
- OpenID -a simple relying party login with OpenID
- OpenID+OAuth+Popup -a directed identity example with OAuth
- 8bitmusic -a sample website that uses directed identity to login
- OpenID ext. Consumer Request

