Send data via POST Method
https://admin.wealth-analyst.com/api/pushnotifier
Authorization: Bearer YOUR_ACCESS_TOKEN
{
"message": "ข้อความตัวอักษร",
"imageFullsize": "https://example.com/image.jpg",
"imageThumbnail": "https://example.com/preview.jpg",
"stickerPackageId": "446",
"stickerId": "1988"
}
Support for multiple message formats
Features and Limitations of Notifier API
# Send Message with LINE Notify format
curl -X POST https://admin.wealth-analyst.com/api/pushnotifier \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"message": "Text message",
"imageFullsize": "https://example.com/image.jpg",
"imageThumbnail": "https://example.com/preview.jpg",
"stickerPackageId": "446",
"stickerId": "1988"
}'
# Send With LINE Messaging API format
curl -X POST https://admin.wealth-analyst.com/api/pushnotifier \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{
"type": "text",
"text": "Text message"
},
{
"type": "image",
"originalContentUrl": "https://example.com/image.jpg",
"previewImageUrl": "https://example.com/preview.jpg"
},
{
"type": "sticker",
"packageId": "446",
"stickerId": "1988"
},
{
"type": "flex",
"altText": "this is a flex message",
"contents": {
"type": "bubble",
"body": {
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "text",
"text": "hello"
},
{
"type": "text",
"text": "world"
}
]
}
},
"quickReply": {
"items": [
{
"type": "action",
"action": {
"type": "cameraRoll",
"label": "Send photo"
}
},
{
"type": "action",
"action": {
"type": "camera",
"label": "Open camera"
}
}
]
}
}
]
}'
โปรดติดตามเราบน YouTube เพื่อเขาถึงเนื้อหาการที่เป็นประโยชน์ 🎉