- 👋 Hi, I’m @Turuk3100
- 👀 I’m interested in ...
- 🌱 I’m currently learning ...
- 💞️ I’m looking to collaborate on ...
- 📫 How to reach me ...
const settings = { "async": true, "crossDomain": true, "url": "https://currency-exchange.p.rapidapi.com/exchange?to=USD&from=EUR&q=1.0", "method": "GET", "headers": { "x-rapidapi-key": "insert-your-unique-rapidapi-key-here", "x-rapidapi-host": "currency-exchange.p.rapidapi.com" } };
$.ajax(settings).done(function (response) { console.log(response); });<?php
$curl = curl_init();
curl_setopt_array($curl, [ CURLOPT_URL => "https://currency-exchange.p.rapidapi.com/exchange?to=USD&from=EUR&q=1.0", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "x-rapidapi-host: currency-exchange.p.rapidapi.com", "x-rapidapi-key: insert-your-unique-rapidapi-key-here" ], ]);
$response = curl_exec($curl); $err = curl_error($curl);
curl_close($curl);
if ($err) { echo "cURL Error #:" . $err; } else { echo $response; MjE3YmMxYWQ