Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ugcleague

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ugcleague

  • 1.2.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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)

FAQs

Package last updated on 26 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc