developersnl / bullhorn-client-bundle
提供Bullhorn REST API的简单客户端。
v1.0.1
2023-06-16 11:26 UTC
Requires
- ext-json: *
- guzzlehttp/guzzle: ^7.2
- league/oauth2-client: ^2.5
- psr/simple-cache: ^1.0
- snc/redis-bundle: ^3.0
- symfony/framework-bundle: ~2.8|~3.0|~4.0|~5.0
Requires (Dev)
- phpunit/phpunit: ^9.4
README
提供Bullhorn REST API的简单客户端。
安装
请确保已全局安装Composer,具体安装方法请参考Composer文档中的安装章节。
使用Symfony Flex的应用程序
打开命令行,进入项目目录,然后执行
$ composer require developersnl/bullhorn-client-bundle
添加一个 config\packages\bullhorn_client.yaml
文件来设置此客户端的配置。以下配置是必需的
bullhorn_client: authentication: clientId: '' clientSecret: '' authUrl: 'https://auth-emea.bullhornstaffing.com/oauth/authorize' tokenUrl: 'https://auth-emea.bullhornstaffing.com/oauth/token' loginUrl: 'https://rest-emea.bullhornstaffing.com/rest-services/login' rest: username: '' password: ''
不使用Symfony Flex的应用程序
步骤1:下载Bundle
打开命令行,进入项目目录,然后执行以下命令以下载此Bundle的最新稳定版本
$ composer require developersnl/bullhorn-client-bundle
步骤2:启用Bundle
然后,通过将其添加到项目 config/bundles.php
文件中注册的Bundle列表中来启用该Bundle
// config/bundles.php return [ // ... Developersnl\BullhornClientBundle\BullhornClientBundle::class => ['all' => true], ];