Project

ugcleague

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby client for UGC League API. NOTE: The admin who uploaded the API spec to GitHub has since removed the Gist. Unsure if the API is still available.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

>= 0
 Project Readme

NOTE: The admin who uploaded the API spec to GitHub has since removed the Gist. Unsure if the API is still available.

UGC League

UGCLeague is a Ruby client for the UGC League API.

Installation

Install it from RubyGems:

gem install ugcleague

Or add it to a Gemfile:

gem 'ugcleague'

Usage

Configuration:

require 'ugcleague'

UGCLeague.configure do |config|
    config.api_key      = "API Key"     # Obtain from a UGC admin.
    config.user_agent   = "User agent"  # User agent to be sent with the request.
    config.debug        = false         # Whether to print debug messages.
end

Examples:

# Set the API key.
UGCLeague.api_key = "API Key"

# Set the user agent.
UGCLeague.user_agent = "User agent"

# Set debug.
UGCLeague.debug = true

# Checks if the player has a profile on UGC.
UGCLeague.player_has_profile(76561198063808035)

# Get a player's team history.
UGCLeague.player_history(76561198063808035)

# Get a player's current team.
UGCLeague.player_current(76561198063808035)