No release in over a year
Patch `twitter` gem for tweeting by Twitter V2 API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 7.0.0
 Project Readme

twitter-rest-v2-tweet

Just a patch twitter for only tweet.
(with Twitter V2 API)

require 'twitter/rest/v2/tweet'

client = Twitter::REST::Client.new(
  consumer_key: 'YOUR_CONSUMER_KEY',
  consumer_secret: 'YOUR_CONSUMER_SECRET',
  access_token: 'YOUR_ACCESS_TOKEN',
  access_token_secret: 'YOUR_ACCESS_SECRET'
)

# Post a tweet.
client.tweet_v2('Yeah!')

# Delete a tweet by Tweet ID.
client.untweet_v2('<YOUR_TWEET_ID>')