From: Harmon Date: Thu, 27 May 2021 11:58:12 +0000 (-0500) Subject: Update and improve documentation for API.get_direct_message X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=806aa007ba39208509e1693683d891e8fc2f3528;p=tweepy.git Update and improve documentation for API.get_direct_message --- diff --git a/tweepy/api.py b/tweepy/api.py index 3c0e40c..8f4993d 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3210,11 +3210,18 @@ class API: Returns a specific direct message. - :param id: The ID of the Direct Message event that should be returned. + Parameters + ---------- + id + The ID of the Direct Message event that should be returned. - :rtype: :class:`DirectMessage` object + Returns + ------- + :class:`~tweepy.models.DirectMessage` - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/direct-messages/sending-and-receiving/api-reference/get-event + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/direct-messages/sending-and-receiving/api-reference/get-event """ return self.request( 'GET', 'direct_messages/events/show', endpoint_parameters=(