From 48d1c12b9045ae8eed7d90cc8e1b4898d6ec44e7 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 27 May 2021 06:56:35 -0500 Subject: [PATCH] Update and improve documentation for API.list_direct_messages --- tweepy/api.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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=( -- 2.25.1