Class Github\Api\CurrentUser\Watchers

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

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Github\Api\AbstractApi
all() List repositories watched by the authenticated user. Github\Api\CurrentUser\Watchers
check() Check that the authenticated user watches a repository. Github\Api\CurrentUser\Watchers
configure() Github\Api\AbstractApi
getPerPage() Github\Api\AbstractApi
setPerPage() Github\Api\AbstractApi
unwatch() Make the authenticated user unwatch a repository. Github\Api\CurrentUser\Watchers
watch() Make the authenticated user watch a repository. Github\Api\CurrentUser\Watchers

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

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

Check that the authenticated user watches a repository.

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

The user who owns the repo

$repository string

The name of the repo

unwatch() public method

Make the authenticated user unwatch a repository.

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

The user who owns the repo

$repository string

The name of the repo

watch() public method

Make the authenticated user watch a repository.

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

The user who owns the repo

$repository string

The name of the repo