Project

so_repute

0.0
No commit activity in last 3 years
No release in over 3 years
Fetches stackoverflow information of a person from his/her stackoverflow user_id
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0

Runtime

~> 0.13.3
~> 1.6.5
 Project Readme

Gem Version

SoRepute

Fetches StackOverflow information of a person from his/her stackoverflow user_id

Installation

It is advisable to register your application in at stackapps when using this gem. Use this link to register your application at stackapps https://stackapps.com/apps/oauth/register

Add this line to your application's Gemfile: gem 'so_repute'

And then execute: $ bundle

Or install it yourself as: $ gem install so_repute

Usage

require 'so_repute'

user = SoRepute::Base.new(user_id, app_key)

#app_key is obtained when you register your app at stackapps. Registering your app allows you a larger number of hit-quota per day. If you do not want to register your app, do : SoRepute::Base.new(user_id)

  1. user.reputation

#returns current total reputation of the user.

  1. user.reputation_change_quarter

#returns users reputation gained in the current quarter

  1. user.reputation_change_month

#returns users reputation gained in the current month

  1. user.reputation_change_week

#returns users reputation gained in the current week

  1. user.reputation_change_day

#returns users reputation gained today(UTC)

  1. user.badges

#Returns a array with count of each type of badge as well as total number of badges of a user in a format as follows: {bronze: 12, silver: 4, gold: 4, total: 20}

  1. user.total_answers

#returns total number of answers answered by a user.

  1. user.total_questions

#returns total number of questions asked by a user.

  1. user.accepted_answers

#returns totalnumber of answers by the user that were accepted as correct answer.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request