Method | Description | |
---|---|---|
getFile ( $user, $repo, $branch, $file ) | ||
getFirstPage ( ) | ||
getLastPage ( ) | ||
getNextPage ( ) | ||
getPage ( ) | ||
getPreviousPage ( ) | ||
getRateLimit ( ) | ||
getRateLimitRemaining ( ) | ||
getRateLimitReset ( ) | ||
hasNextPage ( ) | ||
parseResponse ( $url, $response, $returnType, $expectedHttpCode, $isArray = false ) | ||
request ( $url, $method, $data, $expectedHttpCode, $returnType, $isArray = false ) | ||
setAuthType ( $type ) | ||
setCredentials ( $username, $password ) | ||
setDebug ( $debug ) | ||
setOauthKey ( $key ) | ||
setOauthToken ( $token ) | ||
setPage ( $page = 1 ) | ||
setPageSize ( $pageSize ) | ||
setTimeout ( $timeout ) | ||
upload ( $url, $data, $expectedHttpCode, $returnType, $contentType, $filePath ) |
Method | Description | |
---|---|---|
doRequest ( string $url, string $method, array $data, $contentType = null, $filePath = null ) : array | do a github request and return array | |
requestLast ( array $data ) | ||
resetPage ( ) |
public parseResponse ( $url, $response, $returnType, $expectedHttpCode, $isArray = false ) |
public request ( $url, $method, $data, $expectedHttpCode, $returnType, $isArray = false ) |
public upload ( $url, $data, $expectedHttpCode, $returnType, $contentType, $filePath ) |