PHP Class Instagram\API\Framework\Request

Afficher le fichier Open project: liamcottle/instagram-sdk-php Class Usage Examples

Méthodes publiques

Свойство Type Description
$mapper JsonMapper Used for Mapping response Json to Class instances.

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

public __construct ( )

addCookie() public méthode

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

addFile() public méthode

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

addHeader() public méthode

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

addParam() public méthode

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

clearCookies() public méthode

public clearCookies ( )

clearHeaders() public méthode

public clearHeaders ( )

clearParams() public méthode

public clearParams ( )

execute() public méthode

Execute the Request
public execute ( ) : Response
Résultat Response The Response

getCookies() public méthode

public getCookies ( ) : array
Résultat array Request Cookies

getHeaders() public méthode

public getHeaders ( ) : array
Résultat array Request Headers

getMethod() abstract public méthode

abstract public getMethod ( ) : string
Résultat string Request Method

getParams() public méthode

public getParams ( ) : array
Résultat array Request Parameters

getUrl() abstract public méthode

abstract public getUrl ( ) : string
Résultat string Request Url

setProxy() public méthode

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

setProxyCredentials() public méthode

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

setVerifyPeer() public méthode

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

Property Details

$mapper public_oe property

Used for Mapping response Json to Class instances.
public JsonMapper $mapper
Résultat JsonMapper