PHP 클래스 Apple_Push_API\Request\Request

부터: 0.2.0
파일 보기 프로젝트 열기: alleyinteractive/apple-news 1 사용 예제들

공개 메소드들

메소드 설명
__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