jiminny/ oauth2-bullhorn
Bullhorn OAuth 2.0 客户端提供者,用于 PHP League OAuth2-Client
0.2.0
2021-08-27 12:35 UTC
Requires
- php: ^7.2 || ^8.0
- league/oauth2-client: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.18
- phpunit/phpunit: ^9.5
This package is not auto-updated.
Last update: 2024-09-21 03:22:15 UTC
README
本包为 PHP League 的 Bullhorn OAuth 2.0 支持提供 OAuth 2.0 客户端。
安装
安装此包,请使用 composer
composer require jiminny/oauth2-bullhorn
使用方法
有关使用方法和代码示例,请参阅 PHP League 的 基本使用指南。
注意事项
Bullhorn 实际上并未在其 API 中使用 OAuth。需要执行 REST API 登录调用以获取所谓的 bhrestToken
并使用它。
几点说明
- 如预期的那样,OAuth 刷新令牌在首次使用时将被作废
- 出人意料的是,访问令牌在首次使用时也会被作废
- 我们在非成功请求(500 响应)上也观察到了这种情况
- 令牌有效期为 600 秒,建议在成功调用后手动使其过期。