Skip to content

Instantly share code, notes, and snippets.

@danielrvt
Forked from anonymous/spreadsheet-ws.js
Created November 21, 2017 18:09
Show Gist options
  • Save danielrvt/b7bd201e6f527ad7278edd142ce582cd to your computer and use it in GitHub Desktop.
Save danielrvt/b7bd201e6f527ad7278edd142ce582cd to your computer and use it in GitHub Desktop.
Como consumir servicios web desde hojas de calculo de google
function getBTCPrice() {
var response = UrlFetchApp.fetch("https://www.bitstamp.net/api/ticker");
var last = JSON.parse(response.getContentText()).last;
Logger.log(last);
return last;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment