0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A wrapper for the Xbox Live API provided by Xbox Leaders: https://www.xboxleaders.com/
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
>= 0

Runtime

 Project Readme

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