Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$ironmq = new \IronMQ\IronMQ(array("token" => 'xxxx',"project_id" => 'xxxx'));
$queue_name = "my-handy-push-queue";
$params = array(
"type" => "multicast",
"push" => array(
"subscribers" => array(
array("some-url" => "https://example.com/accept/notification/here", "name" => "http-subscriber"),
array("worker-url" => "ironworker://my-project:xxxxx@xxxxx/process-data", "name" => "worker-subscriber")
),
"retries" => 3,
"retries_delay" => 300,
"error_queue" => "push-errors-go-here"
)
);
$ironmq->createQueue($queue_name, $params);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment