PHP 클래스 Postmark\PostmarkClientBase

파일 보기 프로젝트 열기: wildbit/postmark-php 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$BASE_URL string You may modify this value to disable SSL support, but it is not recommended.
$VERIFY_SSL In some PHP configurations, SSL/TLS certificates cannot be verified. Rather than disabling SSL/TLS entirely in these circumstances, you may disable certificate verification. This is dramatically better than disabling connecting to the Postmark API without TLS, as it's still encrypted, but the risk is that if your connection has been compromised, your application could be subject to a Man-in-the-middle attack. However, this is still a better outcome than using no encryption at all. If possible, you should try to resolve your PHP install's certificate issues as outline here: https://github.com/wildbit/postmark-php/wiki/SSL%20Errors%20on%20Windows

보호된 프로퍼티들

프로퍼티 타입 설명
$authorization_header
$authorization_token
$client GuzzleHttp\Client
$os
$timeout
$version

공개 메소드들

메소드 설명
setClient ( Client $client ) Provide a custom GuzzleHttp\Client to be used for HTTP requests

보호된 메소드들

메소드 설명
__construct ( $token, $header, $timeout = 30 )
getClient ( ) : Client Return the injected GuzzleHttp\Client or create a default instance
processRestRequest ( string $method = NULL, string $path = NULL, array $body = [] ) : object The base request method for all API access.

메소드 상세

__construct() 보호된 메소드

protected __construct ( $token, $header, $timeout = 30 )

getClient() 보호된 메소드

Return the injected GuzzleHttp\Client or create a default instance
protected getClient ( ) : Client
리턴 GuzzleHttp\Client

processRestRequest() 보호된 메소드

The base request method for all API access.
protected processRestRequest ( string $method = NULL, string $path = NULL, array $body = [] ) : object
$method string The request VERB to use (GET, POST, PUT, DELETE)
$path string The API path.
$body array The content to be used (either as the query, or the json post/put body)
리턴 object

setClient() 공개 메소드

Provide a custom GuzzleHttp\Client to be used for HTTP requests
또한 보기: http://docs.guzzlephp.org/en/latest/ for a full list of configuration options The following options will be ignored: - http_errors - headers - query - json
public setClient ( Client $client )
$client GuzzleHttp\Client

프로퍼티 상세

$BASE_URL 공개적으로 정적으로 프로퍼티

You may modify this value to disable SSL support, but it is not recommended.
public static string $BASE_URL
리턴 string

$VERIFY_SSL 공개적으로 정적으로 프로퍼티

In some PHP configurations, SSL/TLS certificates cannot be verified. Rather than disabling SSL/TLS entirely in these circumstances, you may disable certificate verification. This is dramatically better than disabling connecting to the Postmark API without TLS, as it's still encrypted, but the risk is that if your connection has been compromised, your application could be subject to a Man-in-the-middle attack. However, this is still a better outcome than using no encryption at all. If possible, you should try to resolve your PHP install's certificate issues as outline here: https://github.com/wildbit/postmark-php/wiki/SSL%20Errors%20on%20Windows
public static $VERIFY_SSL

$authorization_header 보호되어 있는 프로퍼티

protected $authorization_header

$authorization_token 보호되어 있는 프로퍼티

protected $authorization_token

$client 보호되어 있는 프로퍼티

protected Client,GuzzleHttp $client
리턴 GuzzleHttp\Client

$os 보호되어 있는 프로퍼티

protected $os

$timeout 보호되어 있는 프로퍼티

protected $timeout

$version 보호되어 있는 프로퍼티

protected $version