Class Github\Api\GitData\Blobs

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

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Github\Api\AbstractApi
configure() Configure the Acccept header depending on the blob type. Github\Api\GitData\Blobs
create() Create a blob of a sha for a repository. Github\Api\GitData\Blobs
getPerPage() Github\Api\AbstractApi
setPerPage() Github\Api\AbstractApi
show() Show a blob of a sha for a repository. Github\Api\GitData\Blobs

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

configure() public method

Configure the Acccept header depending on the blob type.

public void configure ( $bodyType null )
$bodyType string|null
create() public method

Create a blob of a sha for a repository.

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

Show a blob of a sha for a repository.

public array show ( $username, $repository, $sha )
$username string
$repository string
$sha string