GitXplorerGitXplorer
o

xbox_leaders

public
2 stars
4 forks
0 issues

Commits

List of commits on branch master.
Unverified
93014abb4293d8a3275ddb3ea03998e5aaf6e22e

Add gem badge to readme.

oopenmailbox committed 11 years ago
Unverified
0a9a975d1f161b777aa2fa97bd83119f1f005298

Update readme.

oopenmailbox committed 11 years ago
Unverified
b994a7bbe2abaf6e7f49564915a5267936178d84

Update gems.

oopenmailbox committed 11 years ago
Unverified
beacd8e1ac28dc6b1d90747158ecd65983b9f91a

Update readme.

oopenmailbox committed 11 years ago
Unverified
76a095300a81ae651e20d0f9190d82c1397c697b

Version bump.

oopenmailbox committed 11 years ago
Unverified
5787df7658c1dee9c5456f724a82ae09125f59c6

Specify a URL on initialization.

oopenmailbox committed 11 years ago

README

The README file for this repository.

XboxLeaders

Gem Version

This is a wrapper around the Xbox Live API provided for free at https://www.xboxleaders.com/.

NOTE: The free Xbox Leaders API was scheduled to be shutdown on 4/30/2014. The source code remains available for download on Github. Using this client requires access to a live endpoint.

Installation

Add this line to your application's Gemfile:

gem 'xbox_leaders'

And then execute:

$ bundle

Or install it yourself as:

$ gem install xbox_leaders

Usage

2.0.0p0 :001 > require 'xbox_leaders'
 => true
2.0.0p0 :002 > api = XboxLeaders::Api.new('https://www.xboxleaders.com/api/2.0')
  => #<XboxLeaders::Api:0x007fbba19adeb8 @api_url="https://www.xboxleaders.com/api/2.0", @timeout=6>
2.0.0p0 :003 > api.fetch_profile('Major Nelson')
  => {"Tier"=>"gold", "IsValid"=>1, "IsCheater"=>0, "IsOnline"=>0, "OnlineStatus"=>"Offline", "XBLLaunchTeam"=>1, "NXELaunchTeam"=>1, "KinectLaunchTeam"=>1, "AvatarTile"=>"http://avatar.xboxlive.com/avatar/Major%20Nelson/avatarpic-l.png", "AvatarSmall"=>"http://avatar.xboxlive.com/avatar/Major%20Nelson/avatarpic-s.png", "AvatarLarge"=>"http://avatar.xboxlive.com/avatar/Major%20Nelson/avatarpic-l.png", "AvatarBody"=>"http://avatar.xboxlive.com/avatar/Major%20Nelson/avatar-body.png", "AvatarTileSSL"=>"https://avatar-ssl.xboxlive.com/avatar/Major%20Nelson/avatarpic-l.png", "AvatarSmallSSL"=>"https://avatar-ssl.xboxlive.com/avatar/Major%20Nelson/avatarpic-s.png", "AvatarLargeSSL"=>"https://avatar-ssl.xboxlive.com/avatar/Major%20Nelson/avatarpic-l.png", "AvatarBodySSL"=>"https://avatar-ssl.xboxlive.com/avatar/Major%20Nelson/avatar-body.png", "Gamertag"=>"Major Nelson", "GamerScore"=>63147, "Reputation"=>20, "Name"=>nil, "Motto"=>"", "Location"=>"", "Bio"=>nil}

See the specs, rdocs, lib files, and documentation at https://www.xboxleaders.com/ for more API calls.

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