Skip to content

Instantly share code, notes, and snippets.

@rbnpercy
Created July 23, 2018 11:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rbnpercy/a2b4566a532bf484e17858eaba2b6aa7 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": 5,
"retries_delay": 100,
"error_queue": "my-push-errors-queue"
}
}
}' \
"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