Method | Description | |
---|---|---|
__construct ( string $key, string $secret, boolean $call = true ) | Client constructor requires: | |
delete ( array $resource, array $args = [] ) : |
Trigger a GET request | |
get ( array $resource, array $args = [] ) : |
Trigger a GET request | |
post ( array $resource, array $args = [] ) : |
Trigger a POST request | |
put ( array $resource, array $args = [] ) : |
Trigger a POST request | |
setSecureProtocol ( boolean $bIsSecured ) : boolean | Sets if we need to use https or http protocol while using API Url |
Method | Description | |
---|---|---|
_call ( string $method, string $resource, string $action, array $args ) : |
Magic method to call a mailjet resource | |
buildURL ( string $resource, string $action, string $id, string $actionid ) : string | Build the final call url without query strings | |
getApiUrl ( ) : string | Build the base API url depending on wether user need a secure connection or not |
public setSecureProtocol ( boolean $bIsSecured ) : boolean | ||
$bIsSecured | boolean | True use https / false use http |
return | boolean | true if we set value false otherwise |