Class Github\Api\CurrentUser\Followers

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

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Github\Api\AbstractApi
all() List followed users by the authenticated user. Github\Api\CurrentUser\Followers
check() Check that the authenticated user follows a user. Github\Api\CurrentUser\Followers
configure() Github\Api\AbstractApi
follow() Make the authenticated user follow a user. Github\Api\CurrentUser\Followers
getPerPage() Github\Api\AbstractApi
setPerPage() Github\Api\AbstractApi
unfollow() Make the authenticated user un-follow a user. Github\Api\CurrentUser\Followers

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

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

Check that the authenticated user follows a user.

public array check ( $username )
$username string

The username to follow

follow() public method

Make the authenticated user follow a user.

public array follow ( $username )
$username string

The username to follow

unfollow() public method

Make the authenticated user un-follow a user.

public array unfollow ( $username )
$username string

The username to un-follow