Class Github\Api\CurrentUser\Starring

InheritanceGithub\Api\CurrentUser\Starring » Github\Api\AbstractApi
ImplementsGithub\Api\ApiInterface

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Github\Api\AbstractApi
all() List repositories starred by the authenticated user. Github\Api\CurrentUser\Starring
check() Check that the authenticated user starres a repository. Github\Api\CurrentUser\Starring
configure() Github\Api\AbstractApi
getPerPage() Github\Api\AbstractApi
setPerPage() Github\Api\AbstractApi
star() Make the authenticated user star a repository. Github\Api\CurrentUser\Starring
unstar() Make the authenticated user unstar a repository. Github\Api\CurrentUser\Starring

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 repositories starred by the authenticated user.

public array all ( $page 1 )
$page int
check() public method

Check that the authenticated user starres a repository.

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

The user who owns the repo

$repository string

The name of the repo

star() public method

Make the authenticated user star a repository.

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

The user who owns the repo

$repository string

The name of the repo

unstar() public method

Make the authenticated user unstar a repository.

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

The user who owns the repo

$repository string

The name of the repo