Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python function

import requests

url = "https://api.apilayer.com/exchangerates_data/latest?symbols=RON&base=EUR"

payload = {}
headers= {
  "apikey": "iuGyKo2kbkA02aHdzQF3pIJLKruKpW5A"
}

response = requests.request("GET", url, headers=headers, data = payload)

status_code = response.status_code
result = response.text
Source by apilayer.com #
 
PREVIOUS NEXT
Tagged: #python #function
ADD COMMENT
Topic
Name
2+2 =