PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 25 → WX - Consumindo informações de um Site Restful
WX - Consumindo informações de um Site Restful
Started by BOLLER, Jan., 17 2017 3:00 PM - 6 replies
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on January, 17 2017 - 3:00 PM
Prezados,

WX - Consumindo informações de um Site Restful cotação do euro, dolar...





Site: http://fixer.io

JSON API for foreign exchange rates and currency conversion
l
Availability Throughput Response time

99.94% 5210rpm 7.63ms

Fixer.io is a free JSON API for current and historical foreign exchange rates published by the European Central Bank.

The rates are updated daily around 4PM CET.

Usage

Get the latest foreign exchange reference rates in JSON format.

http://api.fixer.io/latest

Get historical rates for any day since 1999.

http://api.fixer.io/2000-01-03

Rates are quoted against the Euro by default. Quote against a different currency by setting the base parameter in your request.

http://api.fixer.io/latest?base=USD

Request specific exchange rates by setting the symbols parameter.

http://api.fixer.io/latest?symbols=USD,GBP

Make cross-domain JSONP requests.

http://api.fixer.io/latest?callback=?

An HTTPS endpoint is available.

https://api.fixer.io/latest

Use money.js in the browser.

var demo = function(data) {
fx.rates = data.rates
var rate = fx(1).from("GBP").to("USD")
alert("£1 = $" + rate.toFixed(4))
}

$.getJSON("http://api.fixer.io/latest", demo)

The API runs on Digital Ocean.

The SSL/TLS certificate is provided by Let's Encrypt.

Check out the source code on GitHub.

Fetch the data sets on ECB.

The API comes with no warranty.


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Message modified, January, 17 2017 - 3:21 PM
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on January, 17 2017 - 3:02 PM
http://api.fixer.io/latest

=

{"base":"EUR","date":"2017-01-16","rates":{"AUD":1.4172,"BGN":1.9558,"BRL":3.413,"CAD":1.3927,"CHF":1.0709,"CNY":7.3107,"CZK":27.021,"DKK":7.4361,"GBP":0.87808,"HKD":8.2159,"HRK":7.5318,"HUF":307.38,"IDR":14160.0,"ILS":4.0549,"INR":72.167,"JPY":120.91,"KRW":1253.6,"MXN":22.878,"MYR":4.7313,"NOK":9.0558,"NZD":1.4916,"PHP":52.926,"PLN":4.3729,"RON":4.5023,"RUB":63.169,"SEK":9.483,"SGD":1.5144,"THB":37.524,"TRY":4.0056,"USD":1.0594,"ZAR":14.421}}


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on January, 17 2017 - 3:02 PM
http://api.fixer.io/2000-01-03

=

{"base":"EUR","date":"2000-01-03","rates":{"AUD":1.5346,"CAD":1.4577,"CHF":1.6043,"CYP":0.5767,"CZK":36.063,"DKK":7.4404,"EEK":15.647,"GBP":0.6246,"HKD":7.8624,"HUF":254.53,"ISK":73.03,"JPY":102.75,"KRW":1140.0,"LTL":4.0454,"LVL":0.5916,"MTL":0.4151,"NOK":8.062,"NZD":1.9331,"PLN":4.1835,"ROL":18273.0,"SEK":8.552,"SGD":1.6769,"SIT":198.89,"SKK":42.317,"TRL":546130.0,"USD":1.009,"ZAR":6.2013}}


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on January, 17 2017 - 3:03 PM
http://api.fixer.io/latest?base=USD

=

{"base":"USD","date":"2017-01-16","rates":{"AUD":1.3377,"BGN":1.8461,"BRL":3.2216,"CAD":1.3146,"CHF":1.0109,"CNY":6.9008,"CZK":25.506,"DKK":7.0192,"GBP":0.82885,"HKD":7.7552,"HRK":7.1095,"HUF":290.15,"IDR":13366.0,"ILS":3.8275,"INR":68.121,"JPY":114.13,"KRW":1183.3,"MXN":21.595,"MYR":4.466,"NOK":8.548,"NZD":1.408,"PHP":49.958,"PLN":4.1277,"RON":4.2499,"RUB":59.627,"SEK":8.9513,"SGD":1.4295,"THB":35.42,"TRY":3.781,"ZAR":13.612,"EUR":0.94393}}


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on January, 17 2017 - 3:18 PM
http://api.fixer.io/latest?symbols=USD,GBP

=

{"base":"EUR","date":"2017-01-16","rates":{"GBP":0.87808,"USD":1.0594}}


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on January, 17 2017 - 3:18 PM
http://api.fixer.io/latest?callback=?

=

?({"base":"EUR","date":"2017-01-16","rates":{"AUD":1.4172,"BGN":1.9558,"BRL":3.413,"CAD":1.3927,"CHF":1.0709,"CNY":7.3107,"CZK":27.021,"DKK":7.4361,"GBP":0.87808,"HKD":8.2159,"HRK":7.5318,"HUF":307.38,"IDR":14160.0,"ILS":4.0549,"INR":72.167,"JPY":120.91,"KRW":1253.6,"MXN":22.878,"MYR":4.7313,"NOK":9.0558,"NZD":1.4916,"PHP":52.926,"PLN":4.3729,"RON":4.5023,"RUB":63.169,"SEK":9.483,"SGD":1.5144,"THB":37.524,"TRY":4.0056,"USD":1.0594,"ZAR":14.421}})


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on January, 17 2017 - 3:19 PM
https://api.fixer.io/latest

=

{"base":"EUR","date":"2017-01-16","rates":{"AUD":1.4172,"BGN":1.9558,"BRL":3.413,"CAD":1.3927,"CHF":1.0709,"CNY":7.3107,"CZK":27.021,"DKK":7.4361,"GBP":0.87808,"HKD":8.2159,"HRK":7.5318,"HUF":307.38,"IDR":14160.0,"ILS":4.0549,"INR":72.167,"JPY":120.91,"KRW":1253.6,"MXN":22.878,"MYR":4.7313,"NOK":9.0558,"NZD":1.4916,"PHP":52.926,"PLN":4.3729,"RON":4.5023,"RUB":63.169,"SEK":9.483,"SGD":1.5144,"THB":37.524,"TRY":4.0056,"USD":1.0594,"ZAR":14.421}}


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/