rehive.admin.webhooks.get().then(function (res) { ... }, function (err) { ... });
{- "status": "string",
- "data": {
- "count": 123,
- "results": [
- {
- "id": 0,
- "event": "company.link.create",
- "secret": "string",
- "condition": "string",
- "enabled": true,
- "service": {
- "id": 0,
- "slug": "string",
- "name": "string",
- "url": "string",
- "type": "system"
}, - "archived": false,
- "created": 0,
- "updated": 0
}
]
}
}
{- "event": "company.link.create",
- "secret": "string",
- "condition": "string",
- "enabled": true,
- "archived": false
}
{- "status": "string",
- "data": {
- "id": 0,
- "event": "company.link.create",
- "secret": "string",
- "condition": "string",
- "enabled": true,
- "service": {
- "id": 0,
- "slug": "string",
- "name": "string",
- "url": "string",
- "type": "system"
}, - "archived": false,
- "created": 0,
- "updated": 0
}
}
rehive.admin.webhooks.get( {"id": webhookId} ).then(function (res) { ... }, function (err) { ... });
{- "status": "string",
- "data": {
- "id": 0,
- "event": "company.link.create",
- "secret": "string",
- "condition": "string",
- "enabled": true,
- "service": {
- "id": 0,
- "slug": "string",
- "name": "string",
- "url": "string",
- "type": "system"
}, - "archived": false,
- "created": 0,
- "updated": 0
}
}
{- "event": "company.link.create",
- "secret": "string",
- "condition": "string",
- "enabled": true,
- "archived": false
}
{- "status": "string",
- "data": {
- "id": 0,
- "event": "company.link.create",
- "secret": "string",
- "condition": "string",
- "enabled": true,
- "service": {
- "id": 0,
- "slug": "string",
- "name": "string",
- "url": "string",
- "type": "system"
}, - "archived": false,
- "created": 0,
- "updated": 0
}
}
{- "event": "company.link.create",
- "secret": "string",
- "condition": "string",
- "enabled": true,
- "archived": false
}
{- "status": "string",
- "data": {
- "id": 0,
- "event": "company.link.create",
- "secret": "string",
- "condition": "string",
- "enabled": true,
- "service": {
- "id": 0,
- "slug": "string",
- "name": "string",
- "url": "string",
- "type": "system"
}, - "archived": false,
- "created": 0,
- "updated": 0
}
}
rehive.admin.webhooks.delete( webhookId ).then(function (res) { ... }, function (err) { ... });
{- "status": "string"
}