var response = UrlFetchApp.fetch("http://example.com/api/id=1");
var json = response.getContentText();
var data = JSON.parse(json);
Logger.log(data);
References :
External APIs - Google Apps Script — Google Developers
Class HTTPResponse - Google Apps Script — Google Developers
沒有留言:
張貼留言