keven / jobijoba-client
Simple API client for JobiJoba API
1.0.1
2024-10-07 20:03 UTC
Requires
- php: ^8.2
- php-http/discovery: ^1.17
- psr/http-client-implementation: *
- psr/http-factory-implementation: *
Requires (Dev)
- nyholm/psr7: ^1.8
- psr/http-client: ^1.0
- symfony/http-client: ^7.1
README
Installation
$ composer install keven/jobijoba-client
You can view the client working locally by running the following command line with your own API credentials from the root of the package:
$ JOBIJOBA_CLIENT_ID=xxx JOBIJOBA_CLIENT_SECRET=xxx php -S localhost:8080 ./demo
Then go to http://localhost:8080 in your browser.
Usage
<?php use Keven\JobiJoba\ApiClient; $jobijoba = new ApiClient($clientId, $clientSecret); $page = $jobijoba->search("chauffeur", "Amiens"); foreach ($page->jobs as $job) { echo $job->title; // Available properties: // "id": "", // "link": "", // "title": "", // "description": "", // "publicationDate": "", // "coordinates": "", // "city": "", // "postalCode": "", // "department": "", // "region": "", // "sector": "", // "jobtitle": "", // "company": "", // "contractType": [], // "salary": "" }
That's it.