logamic / zoho-recruit-api
Zoho Recruit API
v1.1.0
2016-11-01 10:56 UTC
Requires
- php: ~5.5 || >=7.0 <7.2
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- fabpot/php-cs-fixer: ^1.9
- phpunit/phpunit: ^4.7
This package is auto-updated.
Last update: 2024-09-11 18:59:15 UTC
README
PHP Zoho Recruit API。
依赖项
- PHP 5.5;
- guzzlehttp/guzzle:~6.0.
安装
安装过程可以通过两种方式完成,使用 packagist 或克隆此仓库。
packagist
打开终端并输入以下命令
$ composer require humantech/zoho-recruit-api
克隆
$ git clone https://github.com/humantech/zoho-recruit-api.git $ composer install
文档
此包兼容PSR-2和PSR-4。
获取认证令牌
要获取认证令牌,您需要有一个名为AuthenticationClient的类实例,并将两个参数传递给名为generateAuthToken的方法,即用户名和明文密码,如下例所示。
<?php $authClient = new \Humantech\Zoho\Recruit\Api\Client\AuthenticationClient(); $token = $authClient->generateAuthToken('youruser@yourcompany.com', 'your-password');
调用getRecords
根据Zoho Recruit Api文档,方法 getRecords,您可以通过以下示例获取候选人的记录。
<?php $client = new \Humantech\Zoho\Recruit\Api\Client\Client($token); $jobOpenings = $client->getRecords('JobOpenings');
更多
在demo文件中或PHPUnit测试类中查看更多示例。
许可
此包采用MIT许可。 查看完整许可。