Hub
Manage webhooks subscriptions to events triggered by changes to your shop data.
This endpoint is in early development and might change in the future.
Consider this a BETA feature.
Consider this a BETA feature.
See Ruby guide.
HTTP GET
$ curl -X GET -H "Authorization: Bearer xxxx" -i https://api.bootic.net/v1/shops/{shop.id}/hub
Status: 200 OK
Content-Type: application/json; charset=utf-8
Connection: keep-alive
ETag: "0728e2965bd03e20a7f1c33add2f8775"
Last-Modified: Fri, 20 Jun 2014 22:34:14 GMT
Cache-Control: must-revalidate, private, max-age=0
Date: Wed, 31 Jul 2013 21:11:52 GMT
X-OAuth-Scopes: public
{
"_class": [
"hub"
],
"_links": {
"curies": [
{
"name": "btc",
"href": "https://api.bootic.net/rels/{rel}",
"templated": true
}
],
"self": {
"href": "https://api.bootic.net/v1/hub/123"
},
"btc:shop": {
"href": "https://api.bootic.net/v1/shops/123"
},
"btc:subscribe": {
"href": "https://api.bootic.net/v1/hub/123/subscriptions",
"method": "post",
"title": "Create a webhook subscription"
},
"btc:unsubscribe": {
"method": "delete",
"title": "Delete a webhook subscription",
"templated": true,
"href": "https://api.bootic.net/v1/hub/123/subscriptions/{id}"
},
"btc:subscriptions": {
"title": "Webhook subscriptions for this shop",
"templated": true,
"href": "https://api.bootic.net/v1/hub/123/subscriptions{?page,per_page,status}"
}
}
}
Links
- self
- A link back to the current resource
- btc:shop
- Current shop shop.
- btc:subscribe
- Create a webhook subscription for this shop. See subscribe.
- btc:unsubscribe
- Remove webhook subscription for this shop. See unsubscribe.
- btc:subscriptions
- List webhook subscriptions for this shop. See subscriptions.