WebhooksClient
class WebhooksClient
Traits
Properties
protected | $curl | from CICommon | |
protected | $api_url | from CICommon |
Methods
mixed
list(string $org_name)
List hooks.
mixed
get(string $org_name, int $hook_id)
Get single hook.
void
create(string $org_name, string $hook_name, array $events, string $url, string $secret, string $content_type = 'json', string $insecure_ssl = '0', bool $active = true)
Create a hook.
void
edit(string $org_name, int $hook_id, array $events, string $url, string $secret, string $content_type = 'json', string $insecure_ssl = '0', bool $active = true)
Edit a hook.
void
ping(string $org_name, int $hook_id)
Ping a hook.
void
delete(string $org_name, string $hook_id)
Delete a hook.
Details
in CICommon at line 18
__construct(Curl $curl, string $api_url)
CICommon constructor.
at line 20
mixed
list(string $org_name)
List hooks.
at line 32
mixed
get(string $org_name, int $hook_id)
Get single hook.
at line 46
void
create(string $org_name, string $hook_name, array $events, string $url, string $secret, string $content_type = 'json', string $insecure_ssl = '0', bool $active = true)
Create a hook.
201
at line 75
void
edit(string $org_name, int $hook_id, array $events, string $url, string $secret, string $content_type = 'json', string $insecure_ssl = '0', bool $active = true)
Edit a hook.
at line 105
void
ping(string $org_name, int $hook_id)
Ping a hook.
204
at line 115
void
delete(string $org_name, string $hook_id)
Delete a hook.