ส่งข้อความเข้า Line Bot ด้วย Sell Script ส่งหา UID ของแต่ละ User ทีละหลาย ๆ User
XXX : Token Line Bot
UID = User ID Line
Code
- #!/bin/sh
- curl -v -X POST https://api.line.me/v2/bot/message/multicast \
- -H 'Content-Type: application/json' \
- -H 'Authorization: Bearer {XXX}' \
- -d '{
- "to": ["UID","UID2","UID2"],
- "messages":[
- {
- "type":"text",
- "text":"Hello, world1"
- },
- {
- "type":"text",
- "text":"Hello, world2"
- }
- ]
- }'
No comments:
Post a Comment