WebHook
Source is the Official Page of updown.io API
Get All WebHooks
$webhook = new WebHook();
/** @var WebHooks $all */
$all = $webhook->all();
$all is an instance of WebHooks, a collection of Biscolab\UpDown\Objects\WebHook objects
CRUD methods
- WebHook is a CRUD object, so it has create,read,updateanddeletemethods available.
- $attributescould an array containing a list of attributes (- Biscolab\UpDown\Fields\WebHookFields) or a scalar value representing the token given by updown.io.
Actually
readandupdatemethods are not available for this object
Create WebHook object on updown.io
$webhook = new WebHook($attributes);
$webhook->create();
// OR!
$webhook = new WebHook();
$webhook->create($attributes);
Attributes
| Attribute name (key) | Type | Description | 
|---|---|---|
| url | string | requiredThe URL of the webhook you want to add | 
Read Check data from updown.io
This method is unavailable
Update Check on updown.io
This method is unavailable
Delete Check from updown.io
$webhook = new WebHook();
$deleted = $webhook->delete();
$deleted is bool, true if "ok", false if something went wrong