2

From this link: Gzip and deflate compression in curb http driver You can set curl.encoding = '' to make curb auto decompress response body. Like below: url_so = "http://api.stackoverflow.com/1.0/users/231917?type=jsontext" curl = Curl::Easy.new(url_so) # enables both deflate and gzip compression of responses curl.encoding = '' curl.perform


1

I get the reason: Do not use gem 'omniauth-stackexchange', '~> 0.2.1' ,but instead of gem 'omniauth-stackexchange', git: 'https://github.com/nashby/omniauth-stackexchange.git' The reason see this:add call back url


1

I don't know about that Ruby/Gem, but your app registration is not correct. You need to configure your app for explicit OAuth2, per this other answer, except enter localhost instead of example.com. (The localhost is based on the original version of the question. If you have a registered domain, use that.) Then, in your ruby code: config.omniauth: ...


1

I think you may be interested in these 2 methods: Authentication: https://api.stackexchange.com/docs/authentication /me (user): https://api.stackexchange.com/docs/me#order=desc&sort=reputation&filter=default&site=stackoverflow&run=true You can access the user's reputation quite easily from there.


Only top voted, non community-wiki answers of a minimum length are eligible