Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (13 sloc) 0.356 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<?php
require_once "phar://../iron_worker.phar";

$worker = new IronWorker();
$worker->debug_enabled = true;

$payload = array(
    'query' => "iron.io",
);
$task_id = $worker->postTask("PHPWorker101", $payload);

# Wait for task finish
$details = $worker->waitFor($task_id);
print_r($details);

$log = $worker->getLog($task_id);
echo "Task log:\n $log\n";
Something went wrong with that request. Please try again.