From 806aa007ba39208509e1693683d891e8fc2f3528 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 27 May 2021 06:58:12 -0500 Subject: [PATCH] Update and improve documentation for API.get_direct_message --- tweepy/api.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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=( -- 2.25.1