iqnection-programming/teamwork-oauth2 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

iqnection-programming/teamwork-oauth2

Composer 安装命令:

composer require iqnection-programming/teamwork-oauth2

包简介

OAuth2 Provider for the PHP League OAuth2 Client package

README 文档

README

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

Installation

To install, use composer:

composer require iqnection-programming/teamwork-oauth2

Usage

View examples in the example directory

Authorization Code Flow

$provider = new \IQnectionProgramming\TeamworkOAuth2\Provider\Teamwork([
	'clientId'          => 'my-client-id',
	'clientSecret'      => 'my-client-secret',
	'redirectUri'       => 'https://example.com/my-redirect-uri'
]);

For further usage of this package please refer to the core package documentation on "Authorization Code Grant".

Using your token

$tokenData = []; <-- Retrieve your token data from your data store
$token = new \League\OAuth2\Client\Token\AccessToken($tokenData);

$values = $token->getValues();

$tokenString = $token->getToken());
$apuUrl = $values['installation']['apiEndPoint'];

Testing

$ ./vendor/bin/phpunit

License

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

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-11-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固