PHP code example of employbrand / ambassador-php-sdk

1. Go to this page and download the library: Download employbrand/ambassador-php-sdk 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/ */

    

employbrand / ambassador-php-sdk example snippets


$client = new EmploybrandAmbassadorClient($companyId, $accessToken);
$client->...

$client = new EmploybrandAmbassadorClient($companyId, $accessToken);

# Get
$candidate = $client->candidates()->getById(1);

# Update
$candidate->firstName = 'Harry';
$client->candidates()->update($candidate->id, $candidate);

# List
$list = $client->candidates()->list();
$list->query(['active' => true]);

$list->page(1); // get the first page
$list->all(); // load all results (multiple API calls)
bash
composer