All URIs are relative to https://rest.paycomet.com
Method | HTTP request | Description |
---|---|---|
exchange | POST /v1/exchange | Converts a certain amount from a currency to another. |
\Swagger\Client\Model\InlineResponse2006 exchange($body, $paycomet_api_token)
Converts a certain amount from a currency to another.
Gets the exchange of an amount.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ExchangeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$body = new \Swagger\Client\Model\V1ExchangeBody(); // \Swagger\Client\Model\V1ExchangeBody |
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required)
try {
$result = $apiInstance->exchange($body, $paycomet_api_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ExchangeApi->exchange: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Swagger\Client\Model\V1ExchangeBody | [optional] | |
paycomet_api_token | string | PAYCOMET API key (Query privilege required) | [optional] |
\Swagger\Client\Model\InlineResponse2006
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]