developersnl/bullhorn-client-bundle

提供Bullhorn REST API的简单客户端。

v1.0.1 2023-06-16 11:26 UTC

This package is auto-updated.

Last update: 2024-09-16 14:22:39 UTC


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],
];