Class Github\Api\Organization\Hooks

InheritanceGithub\Api\Organization\Hooks » Github\Api\AbstractApi
ImplementsGithub\Api\ApiInterface

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
createJsonBody() Create a JSON encoded version of an array of parameters. Github\Api\AbstractApi
delete() Send a DELETE request with JSON-encoded parameters. Github\Api\AbstractApi
get() Send a GET request with query parameters. Github\Api\AbstractApi
head() Send a HEAD request with query parameters. Github\Api\AbstractApi
patch() Send a PATCH request with JSON-encoded parameters. Github\Api\AbstractApi
post() Send a POST request with JSON-encoded parameters. Github\Api\AbstractApi
postRaw() Send a POST request with raw data. Github\Api\AbstractApi
put() Send a PUT request with JSON-encoded parameters. Github\Api\AbstractApi

Method Details

all() public method

List hooks.

public array all ( $organization )
$organization string
create() public method

Create a hook.

public array create ( $organization, array $params )
$organization string
$params array
throws Github\Exception\MissingArgumentException
ping() public method

Ping a hook.

public null ping ( $organization, $id )
$organization string
$id int
remove() public method

Delete a hook.

public null remove ( $organization, $id )
$organization string
$id int
show() public method

Get a single hook.

public array show ( $organization, $id )
$organization string
$id int
update() public method

Edit a hook.

public array update ( $organization, $id, array $params )
$organization string
$id int
$params array
throws Github\Exception\MissingArgumentException