i'm using Twitter (from npm) with Node.Js and i try to send Direct Message.
Here it is my code :
client.post("direct_messages/events/new", {
"type": "message_create", "message_create": {
"target": {
"recipient_id": ("XXX"), "message_create": { "message_data": ("plop") }
}
}
})