PHP code example of jonathanraftery / bullhorn-auth-client

1. Go to this page and download the library: Download jonathanraftery/bullhorn-auth-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/ */

    

jonathanraftery / bullhorn-auth-client example snippets


use jonathanraftery\Bullhorn\Rest\Authentication\Client as BullhornAuthClient;

$client = new BullhornAuthClient(
    'client_id',
    'client_secret'
);

$client->initiateSession(
    'bullhorn_username',
    'bullhorn_password'
);
$restToken = $session->getRestToken();
$restUrl = $session->getRestUrl();

// make Bullhorn calls

// once  your session expires, refresh with the stored refresh token
$client->refreshSession();