Class Github\Api\Gist\Comments

InheritanceGithub\Api\Gist\Comments » 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

Get all comments for a gist.

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

Create a comment for gist.

public array create ( $gist, $body )
$gist string
$body string
remove() public method

Delete a comment for a gist.

public array remove ( $gist, $comment )
$gist string
$comment int
show() public method

Get a comment of a gist.

public array show ( $gist, $comment )
$gist string
$comment int
update() public method

Create a comment for a gist.

public array update ( $gist, $comment_id, $body )
$gist string
$comment_id int
$body string