Created
October 24, 2024 06:13
-
-
Save absyah/1e432dc0653408e6559b826de53b1d4a to your computer and use it in GitHub Desktop.
Line Event Insights
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/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