Resumator API PHP
PHP API wrapper for the Resumator API.
Usage
Check out the examples for a sample job listing implementation.
Minimal Example
require "resumator-api/lib/resumator.php";
// setup with your API Key
$resumator = new Resumator("YOUR_API_KEY");
// return all Jobs
$jobs = $resumator->getJobs();
// get a single Job
$job = $resumator->getJob($jobs[0]->id);
// create a job
$job_fields = array(
"title" => "New Job",
"hiring_lead_id" => "YOUR_ID",
"description" => "Join us!",
"job_status" => 2 // draft status
);
$new_job = $resumator->postJob($job_fields);
Composer
- Add the
jordanandree/resumator-api
:@stable
into the require section of your composer.json. - Run
composer install
. - The example will look like this:
if (($loader = require_once __DIR__ . '/vendor/autoload.php') == null) {
die('Vendor directory not found, Please run composer install.');
}
$resumator = new Resumator("YOUR_API_KEY");
Tests
Tests are a work-in-progress and coverage could be better.
You can run tests like so:
phpunit tests/tests.php
Contributing
- Fork it ( http://github.com/jordanandree/resumator-api-php/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request