Class Github\Api\Search

InheritanceGithub\Api\Search » Github\Api\AbstractApi
ImplementsGithub\Api\ApiInterface

Implement the Search API.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Github\Api\AbstractApi
code() Search code by filter (q). Github\Api\Search
configure() Github\Api\AbstractApi
getPerPage() Github\Api\AbstractApi
issues() Search issues by filter (q). Github\Api\Search
repositories() Search repositories by filter (q). Github\Api\Search
setPerPage() Github\Api\AbstractApi
users() Search users by filter (q). Github\Api\Search

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

code() public method

Search code by filter (q).

public array code ( $q, $sort 'updated', $order 'desc' )
$q string

The filter

$sort string

The sort field

$order string

Asc/desc

return array

List of code found

issues() public method

Search issues by filter (q).

public array issues ( $q, $sort 'updated', $order 'desc' )
$q string

The filter

$sort string

The sort field

$order string

Asc/desc

return array

List of issues found

repositories() public method

Search repositories by filter (q).

public array repositories ( $q, $sort 'updated', $order 'desc' )
$q string

The filter

$sort string

The sort field

$order string

Asc/desc

return array

List of repositories found

users() public method

Search users by filter (q).

public array users ( $q, $sort 'updated', $order 'desc' )
$q string

The filter

$sort string

The sort field

$order string

Asc/desc

return array

List of users found