Coder Social home page Coder Social logo

battlenet-api's Introduction

Battlenet API Gem

Gem Version Dependency Status Code Climate

Installation

$ gem install battlenet-api

How to Use

Configuration

Battlenet.configure do |config|
  config.api_key = 'apikey'
  config.region  = :us
end

World of Warcraft Client

client = Battlenet.WOWClient

achievement = client.achievement({:achievement => 'achievement_id'})
auction_data = client.auction({:realm => 'realm'})
character = client.character_profile({:realm => 'realm', :character_name => 'character_name'})

# TODO: character methods

guild = client.guild_profile({:realm => 'realm', :guild_name => 'guild_name'})

# TODO: guild methods

data = client.data

# TODO: data methods

item = client.item({:item => 'item_id'})
puts item.details

item = client.item_set({:item_set => 'item_set_id'})
puts item.details

pvp_leaderboards = client.pvp_leaderboards({:bracket => 'bracket'})
puts pvp_leaderboards.details

quest = client.quest({:quest => 'quest_id'})
puts quest.details

recipe = client.recipe({:recipe => 'recipe_id'})
puts recipe.details

spell = client.spell({:spell => 'spell_id'})
puts spell.details

Diablo 3 Client

client = Battlenet.D3Client

#Available Methods

client.data_item(data_id)
client.data_follower(follower_id)
client.data_artisan(artisan_id)

client.career_profile(battletag)
client.hero_profile(battletag,hero_id)

Starcraft 2 Client

client = Battlenet.S2Client

#Available Methods

client.achievements
client.rewards

client.ladder(ladder_id)

client.profile(id, region, name)
client.profile_ladders(id, region, name)
client.profile_match_history(id, region, name)

TODO

  • Community OAuth Profile APIs

  • Account APIs

  • Unit Tests for All APIs

  • Refactor Client Code to Utilize OpenStruct on JSON Responses

battlenet-api's People

Contributors

goodcodeguy avatar kagux avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.