Code Monkey home page Code Monkey logo

equest-joblauncher-client's Introduction

joblauncher-client-php

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 like addDefaultHeader 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 specification

This 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

Requirements

PHP 5.4.0 and later

Installation & Usage

Composer

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

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/joblauncher-client-php/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit lib/Tests

Getting Started

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;
}

?>

Documentation for API Endpoints

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

Documentation For Models

Documentation For Authorization

oauth

http_basic

  • Type: HTTP basic authentication

Author

equest-joblauncher-client's People

Contributors

bruno-rodrigues avatar ptushko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.