With Twitter Stone, how do I remake Twitter :: Tweet from Twitter :: REST: Tweets.retweet?

I have a Twitter :: Tweet instance that doesn't have a retweet method. ( http://www.rubydoc.info/gems/twitter/Twitter/Tweet )

However, Twitter :: REST :: Tweets has a method that I can use to retweet. ( http://www.rubydoc.info/gems/twitter/Twitter/REST/Tweets#retweet-instance_method )

I can't find an example: https://github.com/sferik/twitter

Any help is appreciated. I probably just left it too late at night to sort it out.

Cheers, Jan.

+3


source to share


1 answer


Ok. So, you will only ever know about it a few minutes after you share how you work with stackoverflow :)

If you have an instance of Twitter :: Tweet and can trigger this tweet, you can reinstall it using the client.

So:



@client.retweet tweet

      

There will be an RT tweet.

I'll try to add this to the twitter-gem wiki.

+6


source







All Articles