jobapis / jobs-jobinventory
使您的应用程序与Jobinventory的RSS Feed集成变得简单。
0.1.0
2016-10-29 19:05 UTC
Requires
- php: >=5.5.0
- jobapis/jobs-common: ^2.0.0
Requires (Dev)
- mockery/mockery: >=0.9.4
- phpunit/php-code-coverage: ~2.0
- phpunit/phpunit: >=4.6
- squizlabs/php_codesniffer: ~2.0
This package is auto-updated.
Last update: 2024-09-12 15:19:36 UTC
README
此包为Jobinventory RSS feed提供了对Jobs Common的支持。
安装
要安装,请使用composer
composer require jobapis/jobs-jobinventory
用法
创建一个Query对象,并通过构造函数添加您想要的全部参数。
// Add parameters to the query via the constructor $query = new JobApis\Jobs\Client\Queries\JobinventoryQuery();
或者通过"set"方法。所有在Indeed文档中记录的参数都可以添加。
// Add parameters via the set() method $query->set('q', 'engineering');
如果您愿意,甚至可以链式调用它们。
// Add parameters via the set() method $query->set('l', 'Chicago, IL') ->set('limit', '20');
然后将查询对象注入到提供者中。
// Instantiating a provider with a query object $client = new JobApis\Jobs\Client\Provider\JobinventoryProvider($query);
并调用"getJobs"方法来检索结果。
// Get a Collection of Jobs $jobs = $client->getJobs();
"getJobs"方法将返回一个Collection对象集合,其中包含Job对象。
测试
$ ./vendor/bin/phpunit
贡献
请参阅CONTRIBUTING以获取详细信息。
鸣谢
许可
Apache 2.0。请参阅许可文件以获取更多信息。