Class Github\Api\Gists

InheritanceGithub\Api\Gists » Github\Api\AbstractApi
ImplementsGithub\Api\ApiInterface

Creating, editing, deleting and listing gists.

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

public void all ( $type null )
$type
check() public method

public void check ( $id )
$id
comments() public method

Get a gist's comments.

public Github\Api\Gist\Comments comments ( )
commits() public method

public void commits ( $id )
$id
create() public method

public void create ( array $params )
$params
fork() public method

public void fork ( $id )
$id
forks() public method

public void forks ( $id )
$id
remove() public method

public void remove ( $id )
$id
show() public method

public void show ( $number )
$number
star() public method

public void star ( $id )
$id
unstar() public method

public void unstar ( $id )
$id
update() public method

public void update ( $id, array $params )
$id
$params