Careerjet for Web Publishers : : :

Web Publisher

PHP interface to Careerjet's public search API

Here is a easy-to-use PHP module to embed Careerjet job search results into your website.

Installation

If you use a pre-5.2 version of PHP, you need to install json with the following command

 pear install json

Make sure your php.ini contains the line

extension=json.so

Otherwise, all you need to do is download Services_Careerjet.zip and unzip it in a location where your scripts will find it:

 cd my_application_directory
 wget http://www.careerjet.co.uk/devel/Services_Careerjet.zip
 unzip Services_Careerjet.zip

Documentation

For full details please refer to the documentation in the Services_Careerjet.php script.

Example script

<?php

require_once "Services_Careerjet.php" ;

$api = new Services_Careerjet('en_GB') ;

$result = $api->search(array( 'keywords' => 'php developer',
                              'location' => 'London')
                       ) ;

if ( $result->type == 'JOBS' ){
  echo "Found ".$result->hits." jobs" ;
  echo " on ".$result->pages." pages\n" ;
  $jobs = $result->jobs ;
  
  foreach( $jobs as $job ){
    echo " URL:     ".$job->url."\n" ;
    echo " TITLE:   ".$job->title."\n" ;
    echo " LOC:     ".$job->locations."\n";
    echo " COMPANY: ".$job->company."\n" ;
    echo " SALARY:  ".$job->salary."\n" ;
    echo " DATE:    ".$job->date."\n" ;
    echo " DESC:    ".$job->description."\n" ;
    echo "\n" ;
  }
}

if ( $result->type == 'LOCATIONS' ){
  $locations = $result->locations ;
  foreach ( $locations as $loc ){
    echo $loc."\n" ;
  }
}

?>