/** * Line API client */ class Line { /** * Get data from Line API * @return {object} Data from Line API */ static getData() { var options = { "method": "GET", "headers": { "Authorization": "Bearer " + CONFIG.LINE_ACCESS_TOKEN } }; var response = UrlFetch.fetch("https://api.line.me/v2/profile", options); return JSON.parse(response.getContentText()); } }