ttezel / twit

Twitter API Client for node (REST & Streaming API)
4.32k stars 573 forks source link

Get direct messages #567

Open emorling opened 2 years ago

emorling commented 2 years ago

Is it possible to get a list of direct messages?

I tried this for example:

T.post('direct_messages/list', function (err, data, response) { console.log(data) })

orhanarslan-uzmancrm commented 2 years ago

Can you try :"T.get('direct_messages/events/list', function (err, data, response) { console.log(data) })"

kautilyak commented 2 years ago

OP, you are trying to POST instead of GET. If you are looking to get recent Direct messages Try T.get('direct_messages/events/list, callback func)

If you want to send POST to direct_messages/events/new