const https = require('https'); exports.handler = (event, context, callback) => { console.log('Received event:', JSON.stringify(event, null, 2)); // var text = event.stdEvent.clickType; var payload = { "to": [process.env.RECIPIENT_LINE_ID], "messages": [{ "type": "text", "text": "こんにちは! LTE-M Buttonが押されたよ!" } ] } var body = JSON.stringify(payload); var req = https.request({ hostname: "api.line.me"