Skip to content

Instantly share code, notes, and snippets.

@absyah
Created October 24, 2024 06:13
Show Gist options
  • Save absyah/1e432dc0653408e6559b826de53b1d4a to your computer and use it in GitHub Desktop.
Save absyah/1e432dc0653408e6559b826de53b1d4a to your computer and use it in GitHub Desktop.
Line Event Insights
curl -v -X POST https://api.line.me/v2/bot/message/push \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"to": "",
"messages":[
{
"type": "text",
"text": "Hello, world1"
}
],
"customAggregationUnits": [
"betamindqa"
]
}'
curl -v -X POST https://api.line.me/v2/bot/message/multicast \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"to": [""],
"messages":[
{
"type": "text",
"text": "🆕 Visit us!\nhttps://betamind.co.jp/"
}
],
"customAggregationUnits": [
"betamindqa"
]
}'
curl -v -X GET https://api.line.me/v2/bot/insight/message/event/aggregation \
-H 'Authorization: Bearer <token>' \
--data-urlencode 'customAggregationUnit=betamindqa' \
--data-urlencode 'from=20241001' \
--data-urlencode 'to=20241030' \
-G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment