justijndepover/bullhorn-api 问题修复 & 功能扩展

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

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

justijndepover/bullhorn-api

最新稳定版本:0.5.0

Composer 安装命令:

composer require justijndepover/bullhorn-api

包简介

PHP client for the Bullhorn API

README 文档

README

Latest Version on Packagist Software License Total Downloads

PHP Client for the Bullhorn API

Caution

This application is still in development and could implement breaking changes. Please use at your own risk.

Installation

You can install the package with composer

composer require justijndepover/bullhorn-api

Usage

Connecting to Bullhorn:

// note the state param: this can be a random string. It's used as an extra layer of protection. Bullhorn will return this value when connecting.
$bullhorn = new Bullhorn(CLIENT_ID, CLIENT_SECRET, REDIRECT_URI, STATE);

// if you already possess authentication credentials, provide them:
$bullhorn->setAccessToken($accessToken);
$bullhorn->setRefreshToken($refreshToken);
$bullhorn->setTokenExpiresAt($expiresAt);
$bullhorn->setRestUrl($restUrl);
$bullhorn->setBHRestToken($BHRestToken);

// when one of the tokens (accesstoken, refreshtoken, BHRestToken) changes, a callback method is called. Giving you the opportunity to store them.
$bullhorn->setTokenUpdateCallback(function ($bullhorn) {
    // you should store away these tokens
    $bullhorn->getAccessToken();
    $bullhorn->getRefreshToken();
    $bullhorn->getTokenExpiresAt();
    $bullhorn->getRestUrl();
    $bullhorn->getBHRestToken();
});

// open the connection
$bullhorn->connect();

Your application is now connected. To start fetching data:

$bullhorn->get('entity/Candidate/5059165');

Security

If you find any security related issues, please open an issue or contact me directly at justijndepover@gmail.com.

Contribution

If you wish to make any changes or improvements to the package, feel free to make a pull request.

License

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

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

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