Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dylanz
Last active March 6, 2018 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dylanz/cdf104e4049fd1e7269ed82881896c5a to your computer and use it in GitHub Desktop.
Save dylanz/cdf104e4049fd1e7269ed82881896c5a to your computer and use it in GitHub Desktop.
curl -X PUT -H "Authorization: OAuth TOKEN" -H "Content-Type: application/json" \
-d '{
"queue" : {
"type": "multicast",
"push": {
"subscribers": [
{"name": "some-url", "url": "https://example.com/accept/notification/here"},
{"name": "worker-url", "url": "ironworker://my-project:xxxxx@xxxxx/process-data"}
],
"retries": 3,
"retries_delay": 300,
"error_queue": "push-errors-go-here"
}
}
}' \
"https://mq-aws-us-east-x-x.iron.io/1/projects/xxxxxxxx/queues/my-handy-push-queue"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment