+------------------------------------------+-------------------------------------+
| `DELETE direct_messages/events/destroy`_ | :meth:`API.destroy_direct_message` |
+------------------------------------------+-------------------------------------+
- | `GET direct_messages/events/list`_ | :meth:`API.list_direct_messages` |
+ | `GET direct_messages/events/list`_ | :meth:`API.get_direct_messages` |
+------------------------------------------+-------------------------------------+
| `GET direct_messages/events/show`_ | :meth:`API.get_direct_message` |
+------------------------------------------+-------------------------------------+
.. automethod:: API.destroy_direct_message
-.. automethod:: API.list_direct_messages
+.. automethod:: API.get_direct_messages
.. automethod:: API.get_direct_message
def testsearchusers(self):
self.api.search_users('twitter')
- @tape.use_cassette('testlistdirectmessages.json')
- def testlistdirectmessages(self):
- self.api.list_direct_messages()
+ @tape.use_cassette('testgetdirectmessages.json')
+ def testgetdirectmessages(self):
+ self.api.get_direct_messages()
@tape.use_cassette('testsendanddestroydirectmessage.json')
def testsendanddestroydirectmessage(self):
@pagination(mode='dm_cursor')
@payload('direct_message', list=True)
- def list_direct_messages(self, **kwargs):
- """list_direct_messages(*, count, cursor)
+ def get_direct_messages(self, **kwargs):
+ """get_direct_messages(*, count, cursor)
Returns all Direct Message events (both sent and received) within the
last 30 days. Sorted in reverse-chronological order.