Skip to content

Latest commit

 

History

History
66 lines (48 loc) · 2.25 KB

CurrencyApi.md

File metadata and controls

66 lines (48 loc) · 2.25 KB

Swagger\Client\CurrencyApi

All URIs are relative to https://api.billingo.hu/v3

Method HTTP request Description
getConversionRate GET /currencies Get currencies exchange rate.

getConversionRate

\Swagger\Client\Model\ConversationRate getConversionRate($from, $to, $date)

Get currencies exchange rate.

Return with the exchange value of given currencies.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
from \Swagger\Client\Model\Currency
to \Swagger\Client\Model\Currency
date \DateTime [optional]

Return type

\Swagger\Client\Model\ConversationRate

Authorization

api_key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]