프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 | |||
$os | |||
$timeout | |||
$version |
메소드 | 설명 | |
---|---|---|
setClient ( |
Provide a custom GuzzleHttp\Client to be used for HTTP requests |
메소드 | 설명 | |
---|---|---|
__construct ( $token, $header, $timeout = 30 ) | ||
getClient ( ) : |
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. |
protected getClient ( ) : |
||
리턴 |
public setClient ( |
||
$client |
public static string $BASE_URL | ||
리턴 | string |
public static $VERIFY_SSL |