Posting direct messages?

14 views
Skip to first unread message

Callum Short

unread,
Jul 31, 2015, 5:59:29 AM7/31/15
to Twitter Ruby Gem
Any documentation on how this can achieved? Struggling to find anything.

Thanks.

Steve Agalloco

unread,
Jul 31, 2015, 9:52:02 AM7/31/15
to twitter-...@googlegroups.com
The implemented methods for Direct Messages are located here: http://www.rubydoc.info/gems/twitter/Twitter/REST/DirectMessages

basically what you want to do is this:

client = Twitter::REST::Client.new do |config|
  config.consumer_key        = "consumer_key"
  config.consumer_secret     = "consumer_secret"
  config.access_token        = "access_token"
  config.access_token_secret = "access_token_secret"
end

client.create_direct_message('username', 'your message here')

On Fri, Jul 31, 2015 at 5:59 AM, Callum Short <callum...@originsoftware.co.uk> wrote:
Any documentation on how this can achieved? Struggling to find anything.

Thanks.

This message is private and confidential. If you have received this message in error, please notify us and remove it from your system.
Origin Software Solutions Ltd is a company registered in England and Wales. Registered number: 08581904. Vat Number: GB165 1649 00.
Registered office: Origin Software Solutions Ltd, 11 Haygrove Close, Warminster, BA12 8SL

--
You received this message because you are subscribed to the Google Groups "Twitter Ruby Gem" group.
To post to this group, send email to twitter-...@googlegroups.com.
Visit this group at http://groups.google.com/group/twitter-ruby-gem.

Reply all
Reply to author
Forward
0 new messages