PHP 클래스 Milo\Github\Api

또한 보기: https://developer.github.com/v3/
저자: Miloslav Hůla (https://github.com/milo)
상속: extends Milo\Github\Sanity
파일 보기 프로젝트 열기: milo/github-api 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Milo\Github\Http\IClient $client = NULL )
createRequest ( $method, $urlPath, array $parameters = [], array $headers = [], $content = NULL ) : Milo\Github\Http\Request
decode ( Milo\Github\Http\Response $response, array $okCodes = NULL ) : mixed
delete ( $urlPath, array $parameters = [], array $headers = [] ) : Milo\Github\Http\Response
get ( $urlPath, array $parameters = [], array $headers = [] ) : Milo\Github\Http\Response
getClient ( ) : Milo\Github\Http\IClient
getDefaultParameters ( ) : array
getToken ( ) : Milo\Github\OAuth\Token | null
getUrl ( ) : string
head ( $urlPath, array $parameters = [], array $headers = [] ) : Milo\Github\Http\Response
paginator ( $urlPath, array $parameters = [], array $headers = [] ) : Milo\Github\Paginator Creates paginator for HTTP GET requests.
patch ( $urlPath, $content, array $parameters = [], array $headers = [] ) : Milo\Github\Http\Response
post ( $urlPath, $content, array $parameters = [], array $headers = [] ) : Milo\Github\Http\Response
put ( $urlPath, $content = NULL, array $parameters = [], array $headers = [] ) : Milo\Github\Http\Response
request ( Milo\Github\Http\Request $request ) : Milo\Github\Http\Response
setDefaultParameters ( array $defaults = NULL ) : self
setToken ( Milo\Github\OAuth\Token $token = NULL ) : self
setUrl ( $url ) : self
withUrl ( $url ) : Api

보호된 메소드들

메소드 설명
expandColonParameters ( $url, array $parameters, array $defaultParameters ) : string
expandUriTemplate ( $url, array $parameters, array $defaultParameters ) : string Expands URI template (RFC 6570).

비공개 메소드들

메소드 설명
errorMessage ( $content ) : string
escape ( array $flags, $value, $maxLength = NULL ) : string
prefix ( array $flags, $name, $value ) : string
walk ( array $array, $cb )

메소드 상세

__construct() 공개 메소드

public __construct ( Milo\Github\Http\IClient $client = NULL )
$client Milo\Github\Http\IClient

createRequest() 공개 메소드

public createRequest ( $method, $urlPath, array $parameters = [], array $headers = [], $content = NULL ) : Milo\Github\Http\Request
$parameters array
$headers array
리턴 Milo\Github\Http\Request

decode() 공개 메소드

public decode ( Milo\Github\Http\Response $response, array $okCodes = NULL ) : mixed
$response Milo\Github\Http\Response
$okCodes array
리턴 mixed

delete() 공개 메소드

또한 보기: createRequest()
또한 보기: request()
public delete ( $urlPath, array $parameters = [], array $headers = [] ) : Milo\Github\Http\Response
$parameters array
$headers array
리턴 Milo\Github\Http\Response

expandColonParameters() 보호된 메소드

protected expandColonParameters ( $url, array $parameters, array $defaultParameters ) : string
$parameters array
$defaultParameters array
리턴 string

expandUriTemplate() 보호된 메소드

Expands URI template (RFC 6570).
또한 보기: http://tools.ietf.org/html/rfc6570
protected expandUriTemplate ( $url, array $parameters, array $defaultParameters ) : string
$parameters array
$defaultParameters array
리턴 string

get() 공개 메소드

또한 보기: createRequest()
또한 보기: request()
public get ( $urlPath, array $parameters = [], array $headers = [] ) : Milo\Github\Http\Response
$parameters array
$headers array
리턴 Milo\Github\Http\Response

getClient() 공개 메소드

public getClient ( ) : Milo\Github\Http\IClient
리턴 Milo\Github\Http\IClient

getDefaultParameters() 공개 메소드

public getDefaultParameters ( ) : array
리턴 array

getToken() 공개 메소드

public getToken ( ) : Milo\Github\OAuth\Token | null
리턴 Milo\Github\OAuth\Token | null

getUrl() 공개 메소드

public getUrl ( ) : string
리턴 string

head() 공개 메소드

또한 보기: createRequest()
또한 보기: request()
public head ( $urlPath, array $parameters = [], array $headers = [] ) : Milo\Github\Http\Response
$parameters array
$headers array
리턴 Milo\Github\Http\Response

paginator() 공개 메소드

Creates paginator for HTTP GET requests.
또한 보기: get()
public paginator ( $urlPath, array $parameters = [], array $headers = [] ) : Milo\Github\Paginator
$parameters array
$headers array
리턴 Milo\Github\Paginator

patch() 공개 메소드

또한 보기: createRequest()
또한 보기: request()
public patch ( $urlPath, $content, array $parameters = [], array $headers = [] ) : Milo\Github\Http\Response
$parameters array
$headers array
리턴 Milo\Github\Http\Response

post() 공개 메소드

또한 보기: createRequest()
또한 보기: request()
public post ( $urlPath, $content, array $parameters = [], array $headers = [] ) : Milo\Github\Http\Response
$parameters array
$headers array
리턴 Milo\Github\Http\Response

put() 공개 메소드

또한 보기: createRequest()
또한 보기: request()
public put ( $urlPath, $content = NULL, array $parameters = [], array $headers = [] ) : Milo\Github\Http\Response
$parameters array
$headers array
리턴 Milo\Github\Http\Response

request() 공개 메소드

public request ( Milo\Github\Http\Request $request ) : Milo\Github\Http\Response
$request Milo\Github\Http\Request
리턴 Milo\Github\Http\Response

setDefaultParameters() 공개 메소드

public setDefaultParameters ( array $defaults = NULL ) : self
$defaults array
리턴 self

setToken() 공개 메소드

public setToken ( Milo\Github\OAuth\Token $token = NULL ) : self
$token Milo\Github\OAuth\Token
리턴 self

setUrl() 공개 메소드

public setUrl ( $url ) : self
리턴 self

withUrl() 공개 메소드

public withUrl ( $url ) : Api
리턴 Api