PHP Класс Apple_Push_API\Request\Request

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

Открытые методы

Метод Описание
__construct ( Credentials $credentials, boolean $debug = false, Mime_Builder $mime_builder = null ) Constructor.
delete ( string $url ) : mixed Sends a DELETE request for the given article and bundles.
get ( string $url ) : mixed Sends a GET request for the given article and bundles.
post ( string $url, string $article, array $bundles = [], array $meta = null ) : mixed Sends a POST request with the given article and bundles.

Приватные методы

Метод Описание
build_content ( string $article, array $bundles = [], array $meta = [] ) : string Parses the API response and checks for errors.
parse_response ( array $response, boolean $json = true, string $type = 'post', array $meta = null, array $bundles = null, string $article = '', $debug_mime_request = '' ) : mixed Parses the API response and checks for errors.
sign ( string $url, string $verb, string $content = null ) : array Signs the API request.

Описание методов

__construct() публичный метод

Constructor.
public __construct ( Credentials $credentials, boolean $debug = false, Mime_Builder $mime_builder = null )
$credentials Credentials
$debug boolean
$mime_builder Mime_Builder

delete() публичный метод

Sends a DELETE request for the given article and bundles.
С версии: 0.2.0
public delete ( string $url ) : mixed
$url string
Результат mixed

get() публичный метод

Sends a GET request for the given article and bundles.
С версии: 0.2.0
public get ( string $url ) : mixed
$url string
Результат mixed

post() публичный метод

Sends a POST request with the given article and bundles.
С версии: 0.2.0
public post ( string $url, string $article, array $bundles = [], array $meta = null ) : mixed
$url string
$article string
$bundles array
$meta array
Результат mixed