Test

getTokenUsingOAuth($myUsername, $myPassword);
$analyticUri = “jobposts”;

$requestParams = array(
‘regions’ => array(
0 => array(
‘code’ => 3974, // Region code ‘1746’ indicates the region of ‘Cleveland-Elyria, OH MSA’
‘type’ => 2, // Region type ‘2’ indicates that the region is an MSA
)
),
‘filters’ => array (
0 => array(
‘field’ => ‘title’,
‘filterType’ => ‘contains’,
‘key’ => ‘nurse’,
),
),
‘timeframe’ => “ActiveOnly”
);

// Transform the array of params into a json string
$requestParamsJson = json_encode($requestParams);

// It is also possible to use a json string as the params. Ex:
// $requestParamsJson = ‘{“region”:{“code”:3974,”type”:2},”filters”:[{“type”:”freetext”, “filterType”: “contains”, “key”:”nurse”}],”timeframe”:0, “rawOnly”: true}’;

// Run the analytic and retrieve the response using an API call to JobsEQ
$response = $jobseq->runAnalyticUsingOAuthToken($myToken, $analyticUri, $requestParamsJson);

// We want the data element
$data = $response[‘data’];

?>




RTI Job Postings, Cleveland-Elyria, OH MSA
Job Title Company Location Date URL
JobsEQ®