You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

44 lines
680 B

<?php
namespace WCML\MultiCurrency\ExchangeRateServices;
/**
* Class Fixerio
*/
class Fixerio extends ApiLayerService {
/**
* @return string
*/
public function getId() {
return 'fixerio';
}
/**
* @return string
*/
public function getName() {
return 'Fixer.io';
}
/**
* @return string
*/
public function getUrl() {
return 'http://fixer.io/';
}
/**
* @return string
*/
protected function getApiLayerUrl() {
return 'https://api.apilayer.com/fixer/latest?base=%2$s&symbols=%3$s';
}
/**
* @return string
*/
protected function getApiLegacyUrl() {
return 'http://data.fixer.io/api/latest?access_key=%1$s&base=%2$s&symbols=%3$s';
}
}