While sending message through line API I am getting the error:
{"message":"The property, 'to', in the request body is invalid (line: -, column: -)"}
The command I used:
curl -X POST \
-H 'Content-Type:application/json' \
-H 'Authorization: Bearer **********' \
-d '{
"to": "******",
"messages":[
{
"type":"text",
"text":"Hello, world1"
},
{
"type":"text",
"text":"Hello, world2"
}
]
}' https://api.line.me/v2/bot/message/push