Description
This is a Ruby wrapper for the unofficial Xbox API located at http://xboxapi.com
Installation
gem install xbox-api
Usage
One must first create a client that is able to interface with the Xbox API.
The client takes one argument; your xbox API token.
require "xbox-api"
client = XboxApi::Client.new("424242424242424242424242")
#=> <XboxApi::Client:0x007fcc9215c8e8>
Using that client, one can then return a Gamer object
logan = client.gamer("oh hai loganz")
The XboxApi::Gamer instance responds to methods that correspond to API endpoints
logan.presence
logan.gamercard
The client also respond to #calls_remaining
live.calls_remaining
#=> {:limit=>"120", :remaining=>"112", :resets_in=>"452"}
The API
Currently Supported Endpoints
| Endpoint | Method Name | Short Description |
|---|---|---|
| profile | /v2/xuid/profile | This is the Profile for a specified XUID |
| gamercard | /v2/xuid/gamercard | This is the Gamercard information for a specified XUID |
| presence | /v2/xuid/presence | This is the current presence information for a specified XUID |
| activity | /v2/xuid/activity | This is the current activity information for a specified XUID |
| recent_activity | /v2/xuid/activity/recent | This is the recent activity information for a specified XUID |
| friends | /v2/xuid/friends | This is the friends information for a specified XUID |
| followers | /v2/xuid/followers | This is the followers information for a specified XUID |
| xbox360games | /v2/xuid/xbox360games | This is the Xbox 360 Games List for a specified XUID |
| xboxonegames | /v2/xuid/xboxonegames | This is the Xbox One Games List for a specified XUID |
| game_clips | /v2/xuid/game-clips | This is the current collection of clips for a specified XUID |