Spaces:
Sleeping
Sleeping
File size: 490 Bytes
1f074d8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
/**
* Entry point
*/
function doGet() {
var channelId = 'YOUR_CHANNEL_ID';
var channelSecret = 'YOUR_CHANNEL_SECRET';
var oauth2 = new OAuth2(channelId, channelSecret);
var accessToken = oauth2.getAccessToken();
var lineBot = new LineBot(channelId, channelSecret, accessToken);
var event = {
'message': {
'text': 'Hello, World!'
},
'replyToken': 'YOUR_REPLY_TOKEN',
'source': {
'userId': 'YOUR_USER_ID'
}
};
lineBot.handleMessage(event);
} |