Download the PHP package ethical-jobs/ethical-jobs-sdk without Composer
On this page you can find all versions of the php package ethical-jobs/ethical-jobs-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ethical-jobs/ethical-jobs-sdk
More information about ethical-jobs/ethical-jobs-sdk
Files in ethical-jobs/ethical-jobs-sdk
Package ethical-jobs-sdk
Short Description EthicalJobs API client
License MIT
Homepage https://github.com/ethical-jobs/ethical-jobs-sdk-php
Informations about the package ethical-jobs-sdk
Installation
composer require ethical-jobs/ethical-jobs-sdk
For Laravel < 5.5.x
include the service provider and facade in you config/app.php
file EthicalJobs\SDK\Laravel\ServiceProvider::class
, 'EthicalJobs' => EthicalJobs\SDK\Laravel\ApiFacade::class,
. For Laravel >= 5.5.x
the package will auto-include the service provider and facade.
Authentication
You will need to set 4 environment variables to enable authentication:
Authentication is made using oauth2
and JWT tokens are returned and attached to headers as bearer tokens. The grant type is a password
grant and thus its attached to a user model and thus the users access rights and roles.
Making Requests
There are many ways to access api resources, following are some examples:
Responses
Responses are returned as Illuminate\Support\Collection
s if there are no results an empty collection is returned.
In the future the results will be returned from an extended EthicalJobs\SDK\Collection
class with helper functions to select results from our normalized api responses.
$collection->entities('jobs');
All versions of ethical-jobs-sdk with dependencies
guzzlehttp/guzzle Version ~6.0
ethical-jobs/ethical-jobs-foundation Version ~1.3