Skip to content

coder4life/console

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TargetDummy CLI

The TargetDummy CLI fetches data from the Battle.net API and logs the JSON string to the console.

Commands

The CLI is called with td or targetdummy and your Battle.net Developer API key available through your environment variables.

$ BATTLENET_CLIENT_ID=<apikey> td request <game> <command> [--options]

All request commands accept a origin (-o) and locale option (-l).

World of Warcraft

$ td request wow <command>

Commands

achievement

  • --id, -i Number - the achievement ID

auction

  • --realm, -r String - the realm slug

boss

  • --id, -i [Number] - the boss ID
    • omit for all bosses

challenge

  • --realm, -r String - the realm slug

character

  • --realm, -r String - the realm of the character
  • --name, -n String - the name of the character
  • --fields, -f [Array] - one or more additional character data fields
    • choices: profile, achievements, appearance, audit, feed, guild, hunterPets, items, mounts, pets, petSlots, professions, progression, pvp, quests, reputation, statistics, stats, talents, titles
    • default: profile

data

  • --key, -k String - the key of the data resource
    • choices: battlegroups, character:achievements, character:classes, character:races, guild:achievements, guild:rewards, guild:perks, item:classes, talents, pet:types

guild

  • --realm, -r String - the realm of the guild
  • --name, -n String - the name of the guild
  • --fields, -f [Array] - one more more additional guild data fields
    • choices: profile, achievements, members, news, challenge
    • default: profile

item

  • --id, -i Number - the item ID
  • --set, -s Boolean - whether the item ID is for a set

mount

  • no options

pet

  • --key, -k String - the key of the pet data
    • choices: list, ability, species, stats
    • default: list
  • --id, -i [String] - the pet abilities or species ID
  • --level, -e [Number] - the pet level
  • --breed, -d [Number] - the pet breed
  • --quality, -q [Number] - the pet quality

pvp

  • --bracket, -b String - the PvP bracket ID
    • choices: 2v2, 3v3, 5v5, rgb

quest

  • --id, -i Number - the quest ID

realms

  • --realms, -r [Array] - One or more realm slugs
    • omit for all realms

recipe

  • --id, -i Number - the recipe ID

spell

  • --id, -i Number - the spell ID

zone

  • --id, -i [Number] - the zone ID
    • omit for all zones

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%