jobbrander/jobs-simplyhired

此包已被弃用,不再维护。没有建议的替代包。

轻松集成您的应用程序与SimplyHired Jobs API。

0.4.0 2015-10-16 00:46 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:46:55 UTC


README

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

此包为JobBrander的Jobs客户端提供对Simplyhired Jobs API的支持。

安装

要安装,请使用composer

composer require jobbrander/jobs-simplyhired

用法

用法与Job Branders的Jobs客户端相同,使用\JobBrander\Jobs\Client\Provider\Simplyhired作为提供者。

$client = new JobBrander\Jobs\Client\Provider\Simplyhired([
    'auth' => 'YOUR SIMPLYHIRED AUTHORIZATION KEY'
    'pshid' => 'YOUR SIMPLYHIRED PUBLISHER ID',
    'clip' => 'YOUR IP ADDRESS',
]);

// Search for 200 job listings for 'project manager' in Chicago, IL
$jobs = $client
    // SimplyHired API path Setters
    ->setQ()        // Query
    ->setL()        // Location
    ->setMi()       // Miles (optional)
    ->setSb()       // Sort by (optional)
    ->setWs()       // Window Size (optional)
    ->setPn()       // Page Number (optional)
    ->setSi()       // Start index (optional)
    ->setFdb()      // Date Posted (optional)
    ->setFjt()      // Job type (optional)
    ->setFsr()      // Job source (optional)
    ->setFem()      // Employer (optional)
    ->setFrl()      // Special filters (optional)
    ->setFed()      // Education requirements (optional)
    // SimplyHired API query setters
    ->setPshid()    // Publisher id (required)
    ->setAuth()     // Authentication Key (required)
    ->setSsty()     // Search style (required)
    ->setCflg()     // Configuration flag (required)
    ->setClip()     // Client IP (required)
    ->setFrag()     // Description fragment, defaults to display clip, not whole description (optional)
    // More
    ->setKeyword('project manager') //
    ->setLocation('Chicago, IL')    //
    ->setCount(200)                 //
    ->getJobs();

getJobs方法将返回一个CollectionJob对象。

测试

$ ./vendor/bin/phpunit

贡献

请参阅CONTRIBUTING以获取详细信息。

鸣谢

许可证

Apache 2.0。请参阅许可证文件获取更多信息。