2017 © Pedro Peláez
 

library oauth2-ringcentral

RingCentral OAuth 2.0 Client Provider for The PHP League OAuth2-Client

image

tmannherz/oauth2-ringcentral

RingCentral OAuth 2.0 Client Provider for The PHP League OAuth2-Client

  • Wednesday, February 17, 2016
  • by tmannherz
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1,635 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

RingCentral provider for OAuth 2.0 Client

This package provides RingCentral OAuth 2.0 support for the PHP League's OAuth 2.0 Client., (*1)

Installation

To install, use composer:, (*2)

composer require tmannherz/oauth2-ringcentral

Usage

Usage is the same as The League's OAuth client, using \TMannherz\OAuth2\Client\Provider\Ringcentral as the provider., (*3)

Resource Owner Password Credentials Grant

$provider = new TMannherz\OAuth2\Client\Provider\Ringcentral([
    'clientId' => 'rc_app_id',
    'clientSecret' => 'rc_app_secret'
]);
$provider->setDevMode();  // enable sandbox mode

try {
    // Try to get an access token using the resource owner password credentials grant.
    $accessToken = $provider->getAccessToken('password', [
        'username' => 'rc_number',
        'password' => 'rc_pass'
    ]);
} catch (\Exception $e) {
    exit($e->getMessage());
}

License

The MIT License (MIT). Please see License File for more information., (*4)

The Versions

17/02 2016

dev-master

9999999-dev

RingCentral OAuth 2.0 Client Provider for The PHP League OAuth2-Client

  Sources   Download

MIT

The Requires

 

by Todd Mannherz

authentication authorization oauth sso oauth2 identity idp single sign on ringcentral ring central ringcentral api

17/02 2016

1.0

1.0.0.0

RingCentral OAuth 2.0 Client Provider for The PHP League OAuth2-Client

  Sources   Download

MIT

The Requires

 

by Todd Mannherz

authentication authorization oauth sso oauth2 identity idp single sign on ringcentral ring central ringcentral api