PHP 클래스 Instagram\API\Framework\Request

파일 보기 프로젝트 열기: liamcottle/instagram-sdk-php 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$mapper JsonMapper Used for Mapping response Json to Class instances.

공개 메소드들

메소드 설명
__construct ( )
addCookie ( $key, $value ) Add Cookie to the Request
addFile ( $key, $file ) Add File to the Request
addHeader ( $key, $value ) Add Header to the Request
addParam ( $key, $value ) Add Parameter to the Request
clearCookies ( )
clearHeaders ( )
clearParams ( )
execute ( ) : Response Execute the Request
getCookies ( ) : array
getHeaders ( ) : array
getMethod ( ) : string
getParams ( ) : array
getUrl ( ) : string
setProxy ( $proxy ) Set Proxy to be used for Requests
setProxyCredentials ( $credentials ) Set Proxy Credentials to be used for Requests
setVerifyPeer ( $verifyPeer ) Enable/Disable SSL Verification of Peer

메소드 상세

__construct() 공개 메소드

public __construct ( )

addCookie() 공개 메소드

Add Cookie to the Request
public addCookie ( $key, $value )
$key string Cookie Key
$value string Cookie Value

addFile() 공개 메소드

Add File to the Request
public addFile ( $key, $file )
$key string File Key
$file RequestFile

addHeader() 공개 메소드

Add Header to the Request
public addHeader ( $key, $value )
$key string Header Key
$value string Header Value

addParam() 공개 메소드

Add Parameter to the Request
public addParam ( $key, $value )
$key string Parameter Key
$value string Parameter Value

clearCookies() 공개 메소드

public clearCookies ( )

clearHeaders() 공개 메소드

public clearHeaders ( )

clearParams() 공개 메소드

public clearParams ( )

execute() 공개 메소드

Execute the Request
public execute ( ) : Response
리턴 Response The Response

getCookies() 공개 메소드

public getCookies ( ) : array
리턴 array Request Cookies

getHeaders() 공개 메소드

public getHeaders ( ) : array
리턴 array Request Headers

getMethod() 추상적인 공개 메소드

abstract public getMethod ( ) : string
리턴 string Request Method

getParams() 공개 메소드

public getParams ( ) : array
리턴 array Request Parameters

getUrl() 추상적인 공개 메소드

abstract public getUrl ( ) : string
리턴 string Request Url

setProxy() 공개 메소드

Set Proxy to be used for Requests
public setProxy ( $proxy )
$proxy string

setProxyCredentials() 공개 메소드

Set Proxy Credentials to be used for Requests
public setProxyCredentials ( $credentials )
$credentials string

setVerifyPeer() 공개 메소드

Enable/Disable SSL Verification of Peer
public setVerifyPeer ( $verifyPeer )
$verifyPeer boolean

프로퍼티 상세

$mapper 공개적으로 프로퍼티

Used for Mapping response Json to Class instances.
public JsonMapper $mapper
리턴 JsonMapper