Class Github\Api\GitData\References

InheritanceGithub\Api\GitData\References » Github\Api\AbstractApi
ImplementsGithub\Api\ApiInterface

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Github\Api\AbstractApi
all() Get all references of a repository. Github\Api\GitData\References
branches() Get all branches of a repository. Github\Api\GitData\References
configure() Github\Api\AbstractApi
create() Create a reference for a repository. Github\Api\GitData\References
getPerPage() Github\Api\AbstractApi
remove() Delete a reference of a repository. Github\Api\GitData\References
setPerPage() Github\Api\AbstractApi
show() Show the reference of a repository. Github\Api\GitData\References
tags() Get all tags of a repository. Github\Api\GitData\References
update() Update a reference for a repository. Github\Api\GitData\References

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 references of a repository.

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

Get all branches of a repository.

public array branches ( $username, $repository )
$username string
$repository string
create() public method

Create a reference for a repository.

public array create ( $username, $repository, array $params )
$username string
$repository string
$params array
throws Github\Exception\MissingArgumentException
remove() public method

Delete a reference of a repository.

public array remove ( $username, $repository, $reference )
$username string
$repository string
$reference string
show() public method

Show the reference of a repository.

public array show ( $username, $repository, $reference )
$username string
$repository string
$reference string
tags() public method

Get all tags of a repository.

public array tags ( $username, $repository )
$username string
$repository string
update() public method

Update a reference for a repository.

public array update ( $username, $repository, $reference, array $params )
$username string
$repository string
$reference string
$params array
throws Github\Exception\MissingArgumentException