$data
$data : \stdClass
$api : \duncan3dc\GitHub\ApiInterface
getAll(string $url, array $data = array(), callable $callback = null) : \Traversable|array<mixed,\stdClass>
Send a GET request and return the response.
This method will loop through all the pages until one returns no results
string | $url | The url to issue the request to |
array | $data | The parameters to send with the request |
callable | $callback | An optional handler to yield items via |
__construct(\stdClass $data, \duncan3dc\GitHub\ApiInterface $api, \GuzzleHttp\ClientInterface $client)
Create a new instance.
\stdClass | $data | |
\duncan3dc\GitHub\ApiInterface | $api | The GitHub app this installation is for |
\GuzzleHttp\ClientInterface | $client | The HTTP client to communicate via |
getRepositories() : array<mixed,\duncan3dc\GitHub\RepositoryInterface>
Get all of the repositories for this installation.
getRepository(string $name) : \duncan3dc\GitHub\RepositoryInterface
Get a repository instance.
string | $name | The name of the repository |