PHP Класс Instagram\API\Framework\Request

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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