A Ruby interface to the X API.

Joined November 2010
Include

Only show posts containing:

Exclude

Hide posts containing:

Time range
-
Minimum likes
Be sure to update to the latest gem version (0.15.2) to ensure media upload will work after April 30.
In Jan 2025, we launched new X API v2 media upload endpoints. Based on feedback from the developer community, we're working on additional improvements, and will be extending the migration timeline to Apr 30, 2025. Check out the post below for details 👇 devcommunity.x.com/t/extende…
1
1
5,730
Version 0.12.0 released! Now all API errors (e.g. X::NotFound) subclass X::HTTPError and have a #code attribute that returns the HTTP status code (e.g. "404"). github.com/sferik/x-ruby/blo…
2
1
2
4,457
Version 0.11.0 released! This is the best version of the X gem yet. Full changelog here: github.com/sferik/x-ruby/blo…
1
2
5
3,948
The X Ruby Gem retweeted
Programming naming poll: Say you have a ResponseHandler class that has one main method that takes an HTTP response object and parses the body into an object. Don’t get hung up on details of this example—I’m asking about your general approach. What would you name that method?
30%handle_response(response)
52%handle(response)
12%process/run/execute/main
6%Other (please reply)
33 votes • Final results
1
2
3
4,130
Replying to @uagtw
Try adding: require "x/media_upload" to the top of the file where you’re attempting to use it. Also, make sure you’re using version 0.10.0. Please let me know if that doesn’t fix it.
1
48
As of today, the Twitter gem is no longer maintained. Please use the X gem instead. sferik.github.io/x-ruby/
1
1
4
2,577