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 getGistFileName() { | |
var url="https://api.github.com/users/ochilab/gists"; | |
// GIST APIに問い合わせ | |
var response = UrlFetchApp.fetch(url); | |
// JSONパース | |
var result =JSON.parse(response.getContentText()); | |
//とりあえず1つめのデータだけ | |
var files = result[0].files; | |
var fileName=""; | |
for(key in files){ | |
fileName=key; | |
break; | |
} | |
Logger.log(fileName); | |
} |
0 件のコメント:
コメントを投稿