Skip to content

Instantly share code, notes, and snippets.

@kenichi-odo
Last active November 24, 2016 04:30
Show Gist options
  • Save kenichi-odo/6bc46e22ebacb04afcb1e503d03c36c4 to your computer and use it in GitHub Desktop.
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
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