Last active
February 17, 2020 11:20
-
-
Save tandevmode/31cb9c4825fa4b4c99e06f8c95445e92 to your computer and use it in GitHub Desktop.
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 -v -X POST https://api.line.me/v2/bot/message/narrowcast \ | |
-H 'Authorization: Bearer {channel access token}' \ | |
-H 'Content-Type: application/json' \ | |
-d '{ | |
"messages": [ | |
{ | |
"type": "text", | |
"text": "Hello from Narrowcast API using audience from API and LINE OA Manager" | |
} | |
], | |
"recipient": { | |
"type": "operator", | |
"and": [ | |
{ | |
"type": "audience", | |
"audienceGroupId": "3785940337321" | |
}, | |
{ | |
"type": "audience", | |
"audienceGroupId": "3445313670043" | |
} | |
] | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment