SIGN_DIGEST_SHA1
SIGN_DIGEST_SHA1
Handles sending API Requests.
$httpClient : \MerchantAPI\Http\HttpClient
__construct( $endpoint, $apiToken, $signingKey = null, array $options = array())
Client constructor.
$endpoint | ||
$apiToken | ||
$signingKey | ||
array | $options |
getHttpClient() : \MerchantAPI\Http\HttpClient
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293
getEndpoint() : string
Get the endpoint URL.
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293setEndpoint(string $endpoint) : \MerchantAPI\Client
Set the endpoint URL.
string | $endpoint |
getApiToken() : string
Get the authentication API token.
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293setApiToken(string $apiToken) : \MerchantAPI\Client
Set the authentication API token.
string | $apiToken |
getSigningKey() : string
Get the request signing key, base64 encoded.
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293setSigningKey(string $signingKey) : \MerchantAPI\Client
Set the base64 encoded request signing key.
string | $signingKey |
send(\MerchantAPI\RequestInterface $request) : \MerchantAPI\ResponseInterface
Send a RequestInterface and get back its assigned ResponseInterface.
\MerchantAPI\RequestInterface | $request |
sendRequestLowLevel(array $data, array $query = array(), array $headers = array()) : \MerchantAPI\Http\HttpResponse
Low level API Request function.
array | $data | |
array | $query | |
array | $headers |
createRequest( $name, array $args = array()) : \MerchantAPI\RequestInterface
Create as new instance of request by name.
$name | ||
array | $args |