From: Harmon Date: Thu, 27 May 2021 11:56:35 +0000 (-0500) Subject: Update and improve documentation for API.list_direct_messages X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=48d1c12b9045ae8eed7d90cc8e1b4898d6ec44e7;p=tweepy.git Update and improve documentation for API.list_direct_messages --- diff --git a/tweepy/api.py b/tweepy/api.py index 2f33b8c..3c0e40c 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3183,12 +3183,20 @@ class API: Returns all Direct Message events (both sent and received) within the last 30 days. Sorted in reverse-chronological order. - :param count: |count| - :param cursor: |cursor| + Parameters + ---------- + count + |count| + cursor + |cursor| - :rtype: list of :class:`DirectMessage` objects + Returns + ------- + :py:class:`List`\ [:class:`~tweepy.models.DirectMessage`] - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/direct-messages/sending-and-receiving/api-reference/list-events + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/direct-messages/sending-and-receiving/api-reference/list-events """ return self.request( 'GET', 'direct_messages/events/list', endpoint_parameters=(