Class Github\Api\CurrentUser\Emails

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

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Github\Api\AbstractApi
add() Adds one or more email for the authenticated user. Github\Api\CurrentUser\Emails
all() List emails for the authenticated user. Github\Api\CurrentUser\Emails
configure() Github\Api\AbstractApi
getPerPage() Github\Api\AbstractApi
remove() Removes one or more email for the authenticated user. Github\Api\CurrentUser\Emails
setPerPage() Github\Api\AbstractApi

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

add() public method

Adds one or more email for the authenticated user.

public array add ( $emails )
$emails string|array
throws Github\Exception\InvalidArgumentException
all() public method

List emails for the authenticated user.

public array all ( )
remove() public method

Removes one or more email for the authenticated user.

public array remove ( $emails )
$emails string|array
throws Github\Exception\InvalidArgumentException