ApiLayerService.php
4 weeks ago
CurrencyLayer.php
4 weeks ago
ExchangeRatesApi.php
4 weeks ago
Fixerio.php
4 weeks ago
OpenExchangeRates.php
4 weeks ago
Service.php
4 weeks ago
Fixerio.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WCML\MultiCurrency\ExchangeRateServices; |
| 4 | |
| 5 | class Fixerio extends ApiLayerService { |
| 6 | |
| 7 | public function getId() { |
| 8 | return 'fixerio'; |
| 9 | } |
| 10 | |
| 11 | public function getName() { |
| 12 | return 'Fixer.io'; |
| 13 | } |
| 14 | |
| 15 | public function getUrl() { |
| 16 | return 'http://fixer.io/'; |
| 17 | } |
| 18 | |
| 19 | protected function getApiLayerUrl() { |
| 20 | return 'https://api.apilayer.com/fixer/latest?base=%2$s&symbols=%3$s'; |
| 21 | } |
| 22 | |
| 23 | protected function getApiLegacyUrl() { |
| 24 | return 'http://data.fixer.io/api/latest?access_key=%1$s&base=%2$s&symbols=%3$s'; |
| 25 | } |
| 26 | } |
| 27 |