<?php

use Kiernan\Bullhorn;
/*
|---------------------------------------------------------------------
| Require Files
|---------------------------------------------------------------------
*/
require '../vendor/autoload.php';
$config = (require 'config.php');
/*
|---------------------------------------------------------------------
| Create Bullhorn Instnace
|---------------------------------------------------------------------
*/
$bullhorn = new Bullhorn($config['bullhorn']['wsdl'], $config['bullhorn']['params'], $config['bullhorn']['username'], $config['bullhorn']['password'], $config['bullhorn']['apiKey']);
/*
|---------------------------------------------------------------------
| Add File
|---------------------------------------------------------------------
|
| The addFile method sends a document from your filesystem
| to Bullhorn and links it with a specific entity.
|
*/
$entityId = 294415;
$entityName = 'Candidate';
$filename = 'test-resume.pdf';
$type = 'File';
$comments = 'Test API Upload!';
$result = $bullhorn->addFile($entityId, $entityName, $filename, $type, $comments);
Exemple #2
0
<?php

use Kiernan\Bullhorn;
/*
|---------------------------------------------------------------------
| Require Files
|---------------------------------------------------------------------
*/
require '../vendor/autoload.php';
$config = (require 'config.php');
/*
|---------------------------------------------------------------------
| Create Bullhorn Instnace
|---------------------------------------------------------------------
*/
$bullhorn = new Bullhorn($config['bullhorn']['wsdl'], $config['bullhorn']['params'], $config['bullhorn']['username'], $config['bullhorn']['password'], $config['bullhorn']['apiKey']);
/*
|---------------------------------------------------------------------
| Find Candidate by ID
|---------------------------------------------------------------------
|
| Once you have an id (often as a result of the query method),
| you can retrieve details using the find method.
|
| The first parameter must be a valid entity as defined by the
| Bullhorn API. Check the appropriate documentation for the
| API version you are using.
|
| http://developer.bullhorn.com/documentation
|
*/
<?php

use Kiernan\Bullhorn;
/*
|---------------------------------------------------------------------
| Require Files
|---------------------------------------------------------------------
*/
require '../vendor/autoload.php';
$config = (require 'config.php');
/*
|---------------------------------------------------------------------
| Create Bullhorn Instnace
|---------------------------------------------------------------------
*/
$bullhorn = new Bullhorn($config['bullhorn']['wsdl'], $config['bullhorn']['params'], $config['bullhorn']['username'], $config['bullhorn']['password'], $config['bullhorn']['apiKey']);
/*
|---------------------------------------------------------------------
| Fetch Job IDs
|---------------------------------------------------------------------
|
| Use the query method to retrieve entity ids that match specific
| search parameters. Note the use of single and double quotes
| in the where array element.
|
| You can pass the query result to the find or findMultiple method
| to retrieve details for each of the ids.
|
*/
$jobOrderIds = $bullhorn->query(['entityName' => 'JobOrder', 'where' => "title LIKE '%manager%' AND status = 'Accepting Candidates'", 'distinct' => 0, 'parameters' => []]);
/*
Exemple #4
0
<?php

use Kiernan\Bullhorn;
/*
|---------------------------------------------------------------------
| Require Files
|---------------------------------------------------------------------
*/
require '../vendor/autoload.php';
$config = (require 'config.php');
/*
|---------------------------------------------------------------------
| Create Bullhorn Instnace
|---------------------------------------------------------------------
*/
$bullhorn = new Bullhorn($config['bullhorn']['wsdl'], $config['bullhorn']['params'], $config['bullhorn']['username'], $config['bullhorn']['password'], $config['bullhorn']['apiKey']);
/*
|---------------------------------------------------------------------
| Find Job Order by ID
|---------------------------------------------------------------------
|
| Once you have an id (often as a result of the query method),
| you can retrieve details using the find method.
|
| The first parameter must be a valid entity as defined by the
| Bullhorn API. Check the appropriate documentation for the
| API version you are using.
|
| http://developer.bullhorn.com/documentation
|
*/