Skip to content

Instantly share code, notes, and snippets.

@uneasyguy
Created July 18, 2019 20:43
Show Gist options
  • Save uneasyguy/cdcc27de5557c8e065bc97820449a103 to your computer and use it in GitHub Desktop.
Save uneasyguy/cdcc27de5557c8e065bc97820449a103 to your computer and use it in GitHub Desktop.
Apps Script function from https://youtu.be/i2qnM_S1vh4
function myFunction() {
var symbols = ['STRATBTC','OMGBTC','BTCUSDT'];
var something_else = 'hello world';
var query_string = symbols.toString()+'&'+something_else;
var url = 'http://****public ip goes here****:5000/symbols/'+query_string;
var request = UrlFetchApp.fetch(url);
var data = JSON.parse(request.getContentText());
Logger.log(data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment