employbrand /talent-score-php-sdk
该软件包最新版本(1.0.6)没有可用的许可证信息。
Employbrand Talent Score PHP SDK
1.0.6
2022-07-26 21:38 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.4
- guzzlehttp/psr7: ^1.8
README
使用易于使用的PHP SDK将您的应用程序连接到Employbrand Talent Score应用程序。在实例化EmploybrandTS类时,您必须提供公司ID和公司访问令牌。您可以在Employbrand Hub中的“高级 > Employbrand API > Talent Score”下获取这些凭据。
安装
composer require employbrand/talent-score-php-sdk
使用方法
创建客户端。
$client = new EmploybrandTSClient($companyId, $accessToken); $client->...
示例
$client = new EmploybrandTSClient($companyId, $accessToken); # Get $respondent = $client->respondents()->getById(1); # Update $respondent->firstName = 'Harry'; $client->respondents()->update($respondent->id, $respondent); # Create $client->respondents()->create([ 'first_name' => 'Harry', 'email' => 'harry@example.com', 'type' => 'candidate' ]); # List $list = $client->respondents()->list(); $list->query(['active' => true]); $list->page(1); // get the first page $list->all(); // load all results (multiple API calls)
文档
此SDK基于公开可用的文档构建,文档链接为https://documentation.talent-score.employbrand.app/。