forked from dankerizer/CareerBuilder-API-PHP-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples.php
44 lines (39 loc) · 989 Bytes
/
examples.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?
require_once("cb.php");
?>
<html>
<head>
</head>
<body>
<div>
<b>Job Count:</b> <?= CBAPI::getJobCount("sales","atlanta")?>
</div>
<br>
<div>
<b>Job Count Since Date:</b> <?= CBAPI::getJobCountSinceDate("sales","atlanta", 7)?>
</div>
<br>
<div>
<?
$job = CBAPI::getJobDetails("JHT5C35XTD3RGR97QQF"); // request a job object
$title = $job->JobTitle; // pull off the job title from the job
?>
<b>Job Details:</b> (<?= $job->getJobTitle() ?>/<?= $job->getJobTitle(10) ?>) <br><?= $job->getCompanyName() ?><br><?= $job->getLocation() ?><br><? print_r($job) ?>
</div>
<br>
<div>
<?
$results = CBAPI::getJobResults("sales", "atlanta", "", 0);
?>
<b>Job Results:</b> <? print_r($results) ?>
</div>
<br>
<div>
<?
$matches = CBAPI::getRecommendationsForJob("JHT5C35XTD3RGR97QQF");
?>
<b>Job Recommendations for Job: </b> <? print_r($matches) ?>
</div>
<br>
</body>
</html>