-
Notifications
You must be signed in to change notification settings - Fork 24
API Resources
Sergey Chernyshev edited this page Feb 21, 2016
·
1 revision
@TODO Why APIs are important? ... well, because they bring a lot of power of external applications and some also bring users too.
- OAuth protocol for secure and auth
- Secret key authentication
Startup API support simplified OAuth calls on behalf of the user for providers that subclass OAuthAuthenticationModule and OAuth2AuthenticationModule. Here's the code from sample Twitter client:
$creds = $current_user->getUserCredentials('twitter');
$result = $creds->makeOAuthRequest('https://api.twitter.com/1.1/statuses/home_timeline.json', 'GET');