Skip to content
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.

Links

Authentication

  • OAuth protocol for secure and auth
  • Secret key authentication

Supported in Startup API

Simplified OAuth calls

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');
Clone this wiki locally