2017 © Pedro Peláez
 

library resumator-api

Jazz (Resumator) API PHP Wrapper

image

jordanandree/resumator-api

Jazz (Resumator) API PHP Wrapper

  • Tuesday, February 23, 2016
  • by jordanandree
  • Repository
  • 1 Watchers
  • 5 Stars
  • 889 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Jazz (Resumator) API PHP

Build Status, (*1)

PHP API wrapper for the Jazz API., (*2)

Usage

Check out the examples for a sample job listing implementation., (*3)

Minimal Example

require "jazz-api/lib/jazz.php";

// setup with your API Key
$jazz = new Jazz("YOUR_API_KEY");

// return all Jobs
$jobs = $jazz->getJobs();

// return all Jobs without caching
$jobs = $resumator->getJobs();

// get a single Job
$job = $jazz->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 = $jazz->postJob($job_fields);

Caching

The caching mechanism can be configured and toggled on or off prior to making any API calls. By design, caching is only available for GET API calls., (*4)

Examples:, (*5)

require "jazz-api/lib/jazz.php";

// setup with your API Key
$jazz = new Jazz("YOUR_API_KEY");

// set the default caching cache file expiration time (in seconds)
$jazz->cache['EXPIRES'] = 604800; // 1 week

// set the cache file save path
$jazz->cache['PATH'] = __DIR__ . DIRECTORY_SEPARATOR . "cache" . DIRECTORY_SEPARATOR;

// disable caching
$jazz->cache['ENABLED'] = false;

// enable caching
$jazz->cache['ENABLED'] = true;

Composer

  • Add the jordanandree/jazz-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.');
}

$jazz = new Jazz("YOUR_API_KEY");

Tests

Tests are a work-in-progress and coverage could be better., (*6)

You can run tests like so:, (*7)

phpunit tests/tests.php

Contributing

  1. Fork it ( http://github.com/jordanandree/jazz-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

The Versions

23/02 2016

dev-master

9999999-dev

Jazz (Resumator) API PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.2.0
  • ext-curl *
  • ext-json *

 

The Development Requires

by Jordan Andree
by Rob Widdick

10/11 2015

0.4.0

0.4.0.0

Jazz (Resumator) API PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.2.0
  • ext-curl *
  • ext-json *

 

The Development Requires

by Jordan Andree
by Rob Widdick

07/11 2015

0.3.0

0.3.0.0

Jazz (Resumator) API PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.2.0
  • ext-curl *
  • ext-json *

 

The Development Requires

by Jordan Andree

19/06 2014

0.2.5

0.2.5.0

Resumator API PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.2.0
  • ext-curl *
  • ext-json *

 

The Development Requires

by Jordan Andree

10/06 2014

0.2.4

0.2.4.0

Resumator API PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.2.0
  • ext-curl *
  • ext-json *

 

The Development Requires

by Jordan Andree

03/06 2014

0.2.3

0.2.3.0

Resumator API PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.2.0
  • ext-curl *
  • ext-json *

 

The Development Requires

by Jordan Andree

30/05 2014

0.2.2

0.2.2.0

Resumator API PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.2.0
  • ext-curl *
  • ext-json *

 

The Development Requires

by Jordan Andree

30/05 2014

0.2.1

0.2.1.0

Resumator API PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.2.0
  • ext-curl *
  • ext-json *

 

The Development Requires

by Jordan Andree

30/05 2014

0.2.0

0.2.0.0

Resumator API PHP Wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jordan Andree

30/05 2014

0.1.0

0.1.0.0

Resumator API PHP Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.2.0
  • ext-curl *
  • ext-json *

 

The Development Requires

by Jordan Andree