From e0c90859e136a833d5bf7264438718f1b0cf85c2 Mon Sep 17 00:00:00 2001 From: Eric Semeniuc <3838856+esemeniuc@users.noreply.github.com> Date: Tue, 12 Feb 2019 16:20:41 -0800 Subject: [PATCH] hack to fix use the new endpoint. will not marshal into DirectMessage model. use return_json flag --- twitter/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitter/api.py b/twitter/api.py index b1268bcf..096d9245 100755 --- a/twitter/api.py +++ b/twitter/api.py @@ -2954,7 +2954,7 @@ def GetDirectMessages(self, Returns: A sequence of twitter.DirectMessage instances """ - url = '%s/direct_messages.json' % self.base_url + url = '%s/direct_messages/events/list.json' % self.base_url parameters = { 'full_text': bool(full_text), 'include_entities': bool(include_entities),