diff --git a/api-examples/ratesV2/index.php b/api-examples/ratesV2/index.php index fe69813..efe4400 100644 --- a/api-examples/ratesV2/index.php +++ b/api-examples/ratesV2/index.php @@ -55,7 +55,11 @@ switch ($_GET['action']) { case 'lists the current conversion rates between currencies': $method = 'GET'; - $apiUrl = 'https://api.coinpayments.net/api/v2/rates?from=' . $_GET['from'] . '&to=' . $_GET['to']; + $params = array( + "from" => $_GET['from'], + "to" => $_GET['to'] + ); + $apiUrl = 'https://api.coinpayments.net/api/v2/rates?' . http_build_query($params); break; }