All URIs are relative to https://api.billingo.hu/v3
Method | HTTP request | Description |
---|---|---|
getConversionRate | GET /currencies | Get currencies exchange rate. |
\Swagger\Client\Model\ConversationRate getConversionRate($from, $to, $date)
Get currencies exchange rate.
Return with the exchange value of given currencies.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
$apiInstance = new Swagger\Client\Api\CurrencyApi(
// 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(),
$config
);
$from = new \Swagger\Client\Model\Currency(); // \Swagger\Client\Model\Currency |
$to = new \Swagger\Client\Model\Currency(); // \Swagger\Client\Model\Currency |
$date = new \DateTime("2013-10-20"); // \DateTime |
try {
$result = $apiInstance->getConversionRate($from, $to, $date);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CurrencyApi->getConversionRate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
from | \Swagger\Client\Model\Currency | ||
to | \Swagger\Client\Model\Currency | ||
date | \DateTime | [optional] |
\Swagger\Client\Model\ConversationRate
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]