承接 tmannherz/oauth2-ringcentral 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tmannherz/oauth2-ringcentral

Composer 安装命令:

composer require tmannherz/oauth2-ringcentral

包简介

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

README 文档

README

This package provides RingCentral OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

Installation

To install, use composer:

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.

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.

统计信息

  • 总下载量: 2.06k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-02-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固