Basic usage Job posting process in eQuest generally consists of at 2 steps - passing job data (e.g. job title, description) followed by board selection, referred as "posting" in eQuest system (e.g. Monster.com, Craigslist).
Since job in eQuest can't be stored without postings and we don't want to combine all information in one request, there is no way to create job directly. You have to create job draft first using /draft entity and then pass postings information. When request is completed we create job entity. You can use it to change board selection using appropriate methods on /job/{id}/postings endpoint or DELETE job. ## Versioning This API will evolve with time. Request/response format will change. As a result it's mandatory to stick to specific version at the development time and upgrade down the road. This document will always refer to latest version. You can find it at the bottom of the page. Version support is implemented through X-Accept-Version header. In generated clients search for a method likeaddDefaultHeader
and call it when you configure client. In general make sure that every call to the API (both POST and GET) contains version header. You can find current version at the bottom of this page. ## Experimenting using cURL Most API methods provide sample request data in both XML and JSON that can be used for experiments. Simply download request file, adjust if necessary and run command below. Note, you have to adjust endpoint domain and URL, authentication credentials content type and path to a file, which must start with @ to use with cURL. curl -i -H 'Content-type: application/json' -H 'Accept: application/json' -u 'USER:PASS' -d @PATH_TO_FILE http://joblauncher.ZONE.equest.com/api/drafts
Some responses contain links in Hypertex Application Language format for JSON and Atom Links for XML, but they are not documented in Swagger specificationThis PHP package is automatically generated by the Swagger Codegen project:
- API version: 1.7
- Build date: 2020-04-28T17:52:17.539Z
- Build package: class io.swagger.codegen.languages.PhpClientCodegen
PHP 5.4.0 and later
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/equest/joblauncher-client-php.git"
}
],
"require": {
"equest/joblauncher-client-php": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
require_once('/path/to/joblauncher-client-php/autoload.php');
To run the unit tests:
composer install
./vendor/bin/phpunit lib/Tests
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure HTTP basic authorization: http_basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Swagger\Client\Api\DefaultApi();
$draft = new \Swagger\Client\Model\Draft(); // \Swagger\Client\Model\Draft |
try {
$result = $api_instance->createDraft($draft);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->createDraft: ', $e->getMessage(), PHP_EOL;
}
?>
All URIs are relative to https://localhost/api
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | createDraft | POST /drafts | Create a job draft for posting to boards |
DefaultApi | deleteJob | DELETE /jobs/{job_id} | Delete/unpost job and close it |
DefaultApi | deleteJobPosting | DELETE /jobs/{job_id}/postings/{posting_id} | Delete/unpost job from specific board |
DefaultApi | getBoards | GET /boards | Returns boards available to post. |
DefaultApi | getDraft | GET /drafts/{draft_id} | Get Job Draft Data |
DefaultApi | getDraftBsdUrl | GET /drafts/{draft_id}/bsd | Get Board Specific Data page URL for job draft |
DefaultApi | getJob | GET /jobs/{job_id} | Retrieve job data and status |
DefaultApi | getJobPostings | GET /jobs/{job_id}/postings | Returns job's status on boards |
DefaultApi | getJobs | GET /jobs | Search customer's jobs |
DefaultApi | postDraft | POST /drafts/{draft_id}/postings | Post job draft to specified boards |
StubApi | updateJob | PATCH /jobs/{job_id} | Change job data without changing board selection |
- Account
- Board
- BoardSelector
- CandidateResponse
- Classification
- Company
- Compensation
- Draft
- ErrorMessage
- Inventory
- Job
- JobLanguage
- Location
- Position
- Posting
- PostingBoardStatus
- PostingInstructions
- Range
- Type: OAuth
- Flow: accessCode
- Authorization URL: https://auth.equest.com/oauth/authorize
- Scopes:
- joblauncher.equest.com/jobs: Post jobs using your account
- Type: HTTP basic authentication