Last active
November 24, 2016 04:30
-
-
Save kenichi-odo/6bc46e22ebacb04afcb1e503d03c36c4 to your computer and use it in GitHub Desktop.
LINE Messaging APIでgroupIdを取得してPush APIでグループにメッセージを送る ref: http://qiita.com/kenichi_odo/items/18badf7c069334d9c3a2
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
curl -X POST \ | |
-H 'Content-Type:application/json' \ | |
-H 'Authorization: Bearer 0Sw81tcX82eGuKkMPYRgbvDUeAIbgPC+wKR8T1aKaWy4+7dpUzR2t9XpVDQw1cKivU1AVBD6tE/DIWSz60QTW9UCyC7lJgE+u74XvEceuoMqmZkZdAxw/DMybh6hffSwUhDg74qcrlRZLPRIcahC/wdB04t89/1O/w1cDnyilFU=' \ | |
-d '{ | |
"to": "C23fcbe8d92b0e428298ae1e32585fb36", | |
"messages":[ | |
{ | |
"type":"text", | |
"text":"Hello, world1" | |
}, | |
{ | |
"type":"text", | |
"text":"Hello, world2" | |
} | |
] | |
}' https://api.line.me/v2/bot/message/push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment