一个用于与Jobvite API交互的PHP库

v1.0.0 2016-04-12 02:31 UTC

This package is not auto-updated.

Last update: 2024-09-20 18:33:54 UTC


README

Build Status

用于与Jobvite的工作信息API交互的PHP库

安装

建议的安装方法是通过 composer

php composer.phar require jeremylivingston/jobvite

安装Jobvite库后,只需创建客户端的新实例并调用getJobFeed方法

<?php

use Livingstn\Jobvite\Client;

$client = new Client('companyId', 'apiKey', 'secretKey');
$jobFeed = $client->getJobFeed();

将返回一个包含API响应中所有字段的PHP stdClass对象。查看Jobvite文档以获取完整示例响应: http://careers.jobvite.com/careersites/JobviteWebServices.pdf

可以按照以下方式向getJobFeed方法提供可选过滤器

<?php

use Livingstn\Jobvite\Client;

$client = new Client('companyId', 'apiKey', 'secretKey');
$jobFeed = $client->getJobFeed(['type' => 'Full-time', location' => 'Detroit, MI, USA']);

撰写本文时,可以使用以下任一过滤器

  • type - 工作类型,由管理员配置
  • availableTo - 工作发布的设置
  • category - 在您的职业网站上使用的分类,由管理员配置
  • location - 城市、州、国家
  • region - 地区,由管理员配置
  • start - 表示起始索引。(默认:1)
  • count - 表示从起始索引开始的职位数量。(默认:100)