I try to create app to send message to line user by using Line Message API but always return bad request.
this curl i use to run on postman
curl -X POST \
-H 'Content-Type:application/json' \
-H 'Authorization: Bearer <channel access token>' \
-d '{
"to": "Ucf633f17c6198XXXXXXXXXXXXXXXXX",
"messages":[
{
"type":"text",
"text":"Hello, user"
}
]
}' https://api.line.me/v2/bot/message/push
Who have the same problem ? Please share.