Skip to content

Instantly share code, notes, and snippets.

@tandevmode
Last active February 17, 2020 11:20
Show Gist options
  • Save tandevmode/31cb9c4825fa4b4c99e06f8c95445e92 to your computer and use it in GitHub Desktop.
Save tandevmode/31cb9c4825fa4b4c99e06f8c95445e92 to your computer and use it in GitHub Desktop.
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