Class Github\Api\Repository\Downloads

InheritanceGithub\Api\Repository\Downloads » 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 downloads in selected repository.

public array all ( $username, $repository )
$username string

The user who owns the repo

$repository string

The name of the repo

remove() public method

Delete a download in selected repository.

public array remove ( $username, $repository, $id )
$username string

The user who owns the repo

$repository string

The name of the repo

$id int

The id of the download file

show() public method

Get a download in selected repository.

public array show ( $username, $repository, $id )
$username string

The user who owns the repo

$repository string

The name of the repo

$id int

The id of the download file