APIs
From StartupAPI
Revision as of 01:11, 19 February 2012 by Sergey Chernyshev (Talk | contribs)
TODO: Why APIs are important? ... well, because they bring a lot of power of external applications and some also bring users too.
Contents |
Links
Authentication
- http://oauth.net/
- Towards OAuth2 Pastures - Meetup.com's use of OAuth2
Supported in Startup API
Simplified OAuth calls
Startup API support simplified OAuth calls on behalf of the user for providers that subclass OAuthAuthenticationModule. Here's the code from Status.Net sample client:
$statusnet_creds = $current_user->getUserCredentials('statusnet');
$result = $statusnet_creds->makeOAuthRequest($statusnet_APIRootURL.'/statuses/friends.json', 'GET');