Skip to content
Coder edited this page Oct 29, 2017 · 4 revisions

How to receive the token

// Enable autoload
require_once __DIR__ . "/vendor/autoload.php";

// Create the Token object
$pcr_token = new PCRecruiter\Token();
$pcr_token->setConfig(__DIR__ . "/pcr.php");

// Get the token
$token = $pcr_token->get()['message']->SessionId;

How to get all jobs from PCR

// Get all positions
$pcr_positions = new PCRecruiter\Positions($token);
$positions = $pcr_positions->get()['message']->Results;

How to get details about specific job by ID

$position_by_id = $pcr_positions->get($job_id)['message']->Results;
Clone this wiki locally