humantech/zoho-recruit-api

Zoho Recruit API

v1.1.0 2016-11-01 10:56 UTC

This package is not auto-updated.

Last update: 2024-09-24 18:46:11 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许可证下。 查看完整许可证