Hot answers tagged ruby
We (myself and Kyle), with graphical help from Nathan, developed an automatically generated image that pulls in the number of bounties, the total bounty rep value, and displays that in an image. It is part of the Ask Different Community Ads, and we're pretty proud of it. Thanks for developing Serel, it made the heavy lifting of StackExchange's API ...
Interesting idea. It would be interesting to be able to compare languages over time, similar to http://langpop.com/ You could also display the top (10) tags per day/week/month. A search form for checking arbitrary tags would be nice too - you only link to a very small few. Bonus points for autocomplete.
I think your problem is that you're forgetting that the API only supplies gzipped data. I don't use Ruby, so you'll have to figure out how to tell curl to accept gzip data.
Rubyoverflow dev here, I've been rewriting it recently. I'm actually going to be redoing it again now, seeing that the 2.0 beta is out.
You would use the inname parameter of the users path. For example this gets users with marcamillion in their name, on Stack Overflow. Note that the filter parameter controls what fields are returned, not the content of those fields. I don't use Serel (or much Ruby), but the syntax is probably: Serel::User.inname('marcamillion').get Or, with some more ...
Although I don't use Ruby (and consequently have not used the two libraries you've mentioned), I'm going to guess that the problem is that you aren't specifying a filter that includes body. By default, post body is not included in the JSON returned by API methods and must explicitly be requested by creating a filter that includes it. The withbody filter, ...
Its funny how some of the rubyoverflow's sourcecode is incredibly similar to pilha. http://github.com/phsr/rubyoverflow/blob/master/lib/rubyoverflow.rb http://github.com/dlt/pilha/blob/master/lib/pilha.rb Why not send pull requests to pilha instead of making your own version of it?
You might also want to use Hashie. One of the best twitter clients for ruby uses it, and the resulting interface is very clean and easy to use. I've wrapped over Delicious rss api with it in less than 60 lines.
An API would be cool
Try to set the Accepted-encoding like: curl = Curl::Easy.new(url_so) curl.headers["Accept-Encoding"] = "gzip,deflate" curl.perform
Only top voted, non community-wiki answers of a minimum length are eligible