0.0
No commit activity in last 3 years
No release in over 3 years
Get Info on XBL Gamertag profile, games, and achievments
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

Runtime

>= 0
 Project Readme

RubyGamertag

An interface for accessing your XBOX Live profile and game data.

Install

gem install rubygamertag

Gemfile:

require 'rubygamertag'

Usage

#Get Profile Info:


profile = RubyGamertag::Profile.new("GAMERTAG")
  profile.tier
  profile.is_cheater
  profile.is_online
  profile.avatars
  profile.GamerScore
  profile.Reputation
  profile.Name
  profile.Motto
  profile.Bio
  profile.Location

#Retrieve User Game Stats:


games = RubyGamertag::Games.new("GAMERTAG")
  games.Gamerpic
  games.GameCount
  games.TotalEarnedGamerScore
  games.TotalPossibleGamerScore
  games.TotalEarnedAchievements
  games.TotalPossibleAchievements
  games.TotalPercentCompleted
  games.played_games.each do |game|
    game.id
    game.title
    game.url
    game.art
    game.earned_gamerscore
    game.possible_gamerscore
    game.earned_achievements
    game.possible_achievements
    game.percentage_completed
    game.last_played
  end

#Get Friend Lists/Info:


friends = RubyGamertag::Friends.new("GAMERTAG")
  friends.TotalFriends
  friends.TotalOnlineFriends
  friends.TotalOfflineFriends
  friends.friends.each do |friend|
    friend.gamertag
    friend.avatars
    friend.gamerscore
    friend.is_online
    friend.last_online
    friend.online_status
    friend.game_title # <--These are for their most recently played game
    friend.game_id
    friend.game_url
  end

Documentation

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request.

Copyright

Copyright (c) 2012 Jacob Williams