PHP 클래스 MC4WP_API_v3_Client

파일 보기 프로젝트 열기: dannyvankooten/mailchimp-for-wordpress 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $api_key ) Constructor
delete ( string $resource ) : mixed
get ( string $resource, array $args = [] ) : mixed
get_last_response ( ) : array | WP_Error
get_last_response_body ( ) : string
get_last_response_headers ( ) : array
patch ( string $resource, array $data ) : mixed
post ( string $resource, array $data ) : mixed
put ( string $resource, array $data ) : mixed

비공개 메소드들

메소드 설명
get_headers ( ) : array
parse_response ( array | WP_Error $response ) : mixed
request ( string $method, string $resource, array $data = [] ) : mixed
reset ( ) Empties all data from previous response

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $api_key )
$api_key string

delete() 공개 메소드

public delete ( string $resource ) : mixed
$resource string
리턴 mixed

get() 공개 메소드

public get ( string $resource, array $args = [] ) : mixed
$resource string
$args array
리턴 mixed

get_last_response() 공개 메소드

public get_last_response ( ) : array | WP_Error
리턴 array | WP_Error

get_last_response_body() 공개 메소드

public get_last_response_body ( ) : string
리턴 string

get_last_response_headers() 공개 메소드

public get_last_response_headers ( ) : array
리턴 array

patch() 공개 메소드

public patch ( string $resource, array $data ) : mixed
$resource string
$data array
리턴 mixed

post() 공개 메소드

public post ( string $resource, array $data ) : mixed
$resource string
$data array
리턴 mixed

put() 공개 메소드

public put ( string $resource, array $data ) : mixed
$resource string
$data array
리턴 mixed