MCPcopy Index your code
hub / github.com/ryanmcgrath/twython / send_direct_message

Method send_direct_message

twython/endpoints.py:337–345  ·  view source on GitHub ↗

Sends a new direct message to the specified user from the authenticating user. Docs: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/new-event

(self, **params)

Source from the content-addressed store, hash-verified

335 return self.delete('direct_messages/events/destroy', params=params)
336
337 def send_direct_message(self, **params):
338 """Sends a new direct message to the specified user from the
339 authenticating user.
340
341 Docs:
342 https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/new-event
343
344 """
345 return self.post('direct_messages/events/new', params=params, json_encoded=True)
346
347 # Friends & Followers
348 def get_user_ids_of_blocked_retweets(self, **params):

Calls 1

postMethod · 0.80