Created
December 1, 2017 11:22
-
-
Save hiroto3432/b59729f3b539231c8ed6c647c686e388 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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