woocommerce-multilingual
/
classes
/
multi-currency
/
exchange-rate-services
/
OpenExchangeRates.php
ApiLayerService.php
1 month ago
CurrencyLayer.php
1 month ago
ExchangeRatesApi.php
1 month ago
Fixerio.php
1 month ago
OpenExchangeRates.php
1 month ago
Service.php
1 month ago
OpenExchangeRates.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WCML\MultiCurrency\ExchangeRateServices; |
| 4 | |
| 5 | class OpenExchangeRates extends Service { |
| 6 | |
| 7 | public function getId() { |
| 8 | return 'openexchangerates'; |
| 9 | } |
| 10 | |
| 11 | public function getName() { |
| 12 | return 'Open Exchange Rates'; |
| 13 | } |
| 14 | |
| 15 | public function getUrl() { |
| 16 | return 'https://openexchangerates.org/'; |
| 17 | } |
| 18 | |
| 19 | public function getApiUrl() { |
| 20 | return 'https://openexchangerates.org/api/latest.json?app_id=%1$s&base=%2$s&symbols=%3$s'; |
| 21 | } |
| 22 | |
| 23 | public function isKeyRequired() { |
| 24 | return true; |
| 25 | } |
| 26 | |
| 27 | } |
| 28 |