Skip to content

Instantly share code, notes, and snippets.

@hiroto3432
Created December 1, 2017 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiroto3432/b59729f3b539231c8ed6c647c686e388 to your computer and use it in GitHub Desktop.
Save hiroto3432/b59729f3b539231c8ed6c647c686e388 to your computer and use it in GitHub Desktop.
function myFunction() {
var response = UrlFetchApp.fetch("https://so2-api.mutoys.com/json/sale/all.json");
var json = JSON.parse(response.getContentText());
var n = 0;
while(1){
try{
var st = json[n]["item_id"];
var dat = st + "," + n;
Logger.log(dat);
n++;
}
catch(e){
break;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment