jordanandree/resumator-api

Resumator API PHP Wrapper

Installs: 16

Dependents: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 1

Language: PHP

0.2.5 2014-06-19 19:36 UTC

README

Build Status

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

  1. Fork it ( http://github.com/jordanandree/resumator-api-php/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request