Description Usage Arguments See Also
View source: R/direct_messages_new.R
POST direct_messages/new
1 | twtr_direct_messages_new(user_id = NULL, screen_name = NULL, text, ...)
|
user_id |
The ID of the user who should receive the direct message. Helpful for disambiguating when a valid user ID is also a valid screen name. Example Values: 12345 |
screen_name |
The screen name of the user who should receive the direct message. Helpful for disambiguating when a valid screen name is also a user ID. Example Values: noradio |
text |
The text of your direct message. Be sure to URL encode as necessary, and keep the message within the character count limit (available in the help/configuration endpoint) Example Values: Meet me behind the cafeteria after school |
https://dev.twitter.com/rest/reference/post/direct_messages/new
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.