PHP code example of varspool / jobadder-api-client

1. Go to this page and download the library: Download varspool/jobadder-api-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

varspool / jobadder-api-client example snippets


$contacts = $client->contacts()->findContacts(['limit' => 3]);
$ads = $client->jobAds()->getJobAds();

  use GuzzleHttp\Client as GuzzleClient;
  use Varspool\JobAdder\Client as JobAdderClient;
  use Http\Adapter\Guzzle6\Client as GuzzleAdapter;

  $guzzle = new GuzzleClient($options);
  $http = new GuzzleAdapter($guzzle);
  $jobadder = new JobAdderClient($http);
  

// Get these both from the OAuth token response
$api = 'https://localapi.jobadder.com/v2';
$token = 'abcdef01234567890';

$guzzle = new GuzzleClient([
    'base_uri' => $api,
    'headers' => [
        'Authorization' => 'Bearer ' . $token
    ]
]);