battlenet-api
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -5,3 +5,3 @@ { | ||
"description": "A wrapper for the Battle.net API", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"homepage": "https://github.com/benweier/battlenet-api", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
@@ -113,3 +113,3 @@ # Battle.net API | ||
```javascript | ||
bnet.wow.achievement({region: 'us', id: 2144}, callback); | ||
bnet.wow.achievement({origin: 'us', id: 2144}, callback); | ||
``` | ||
@@ -131,3 +131,3 @@ | ||
```javascript | ||
bnet.wow.auction({region: 'us', realm: 'proudmoore'}, callback); | ||
bnet.wow.auction({origin: 'us', realm: 'proudmoore'}, callback); | ||
``` | ||
@@ -152,3 +152,3 @@ | ||
```javascript | ||
bnet.wow.battlePet.ability({region: 'us', id: 640}, callback); | ||
bnet.wow.battlePet.ability({origin: 'us', id: 640}, callback); | ||
``` | ||
@@ -168,3 +168,3 @@ | ||
```javascript | ||
bnet.wow.battlePet.species({region: 'us', id: 258}, callback); | ||
bnet.wow.battlePet.species({origin: 'us', id: 258}, callback); | ||
``` | ||
@@ -186,3 +186,3 @@ | ||
```javascript | ||
bnet.wow.battlePet.stats({region: 'us', id: 258, fields: { level: 25, breedId: 5, qualityId: 4 }}, callback); | ||
bnet.wow.battlePet.stats({origin: 'us', id: 258, fields: { level: 25, breedId: 5, qualityId: 4 }}, callback); | ||
``` | ||
@@ -206,3 +206,3 @@ | ||
```javascript | ||
bnet.wow.challenge.realmLeaderboard({region: 'us', realm: 'proudmoore'}, callback); | ||
bnet.wow.challenge.realmLeaderboard({origin: 'us', realm: 'proudmoore'}, callback); | ||
``` | ||
@@ -219,3 +219,3 @@ | ||
```javascript | ||
bnet.wow.challenge.regionLeaderboard({region: 'us'}, callback); | ||
bnet.wow.challenge.regionLeaderboard({origin: 'us'}, callback); | ||
``` | ||
@@ -244,3 +244,3 @@ | ||
```javascript | ||
bnet.wow.character.profile({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.profile({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -256,3 +256,3 @@ | ||
```javascript | ||
bnet.wow.character.achievements({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.achievements({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -268,3 +268,3 @@ | ||
```javascript | ||
bnet.wow.character.appearance({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.appearance({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -280,3 +280,3 @@ | ||
```javascript | ||
bnet.wow.character.guild({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.guild({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -292,3 +292,3 @@ | ||
```javascript | ||
bnet.wow.character.hunterPets({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.hunterPets({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -304,3 +304,3 @@ | ||
```javascript | ||
bnet.wow.character.items({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.items({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -316,3 +316,3 @@ | ||
```javascript | ||
bnet.wow.character.mounts({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.mounts({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -328,3 +328,3 @@ | ||
```javascript | ||
bnet.wow.character.pets({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.pets({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -340,3 +340,3 @@ | ||
```javascript | ||
bnet.wow.character.petSlots({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.petSlots({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -352,3 +352,3 @@ | ||
```javascript | ||
bnet.wow.character.progression({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.progression({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -364,3 +364,3 @@ | ||
```javascript | ||
bnet.wow.character.pvp({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.pvp({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -376,3 +376,3 @@ | ||
```javascript | ||
bnet.wow.character.quests({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.quests({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -388,3 +388,3 @@ | ||
```javascript | ||
bnet.wow.character.reputation({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.reputation({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -400,3 +400,3 @@ | ||
```javascript | ||
bnet.wow.character.stats({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.stats({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -412,3 +412,3 @@ | ||
```javascript | ||
bnet.wow.character.talents({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.talents({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -424,3 +424,3 @@ | ||
```javascript | ||
bnet.wow.character.titles({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.titles({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -436,3 +436,3 @@ | ||
```javascript | ||
bnet.wow.character.audit({region: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
bnet.wow.character.audit({origin: 'us', realm: 'proudmoore', name: 'charni'}, callback); | ||
``` | ||
@@ -452,3 +452,3 @@ | ||
```javascript | ||
bnet.wow.character.aggregate({region: 'us', realm: 'proudmoore', name: 'charni', fields: ['pets', 'petSlots']}, callback); | ||
bnet.wow.character.aggregate({origin: 'us', realm: 'proudmoore', name: 'charni', fields: ['pets', 'petSlots']}, callback); | ||
``` | ||
@@ -474,3 +474,3 @@ | ||
```javascript | ||
bnet.wow.item.item({region: 'us', id: 18803}, callback); | ||
bnet.wow.item.item({origin: 'us', id: 18803}, callback); | ||
``` | ||
@@ -491,3 +491,3 @@ | ||
```javascript | ||
bnet.wow.item.item({region: 'us', id: 1060}, callback); | ||
bnet.wow.item.item({origin: 'us', id: 1060}, callback); | ||
``` | ||
@@ -516,3 +516,3 @@ | ||
```javascript | ||
bnet.wow.guild.profile({region: 'us', realm: 'proudmoore', name: 'black wolf mercenaries'}, callback); | ||
bnet.wow.guild.profile({origin: 'us', realm: 'proudmoore', name: 'black wolf mercenaries'}, callback); | ||
``` | ||
@@ -528,3 +528,3 @@ | ||
```javascript | ||
bnet.wow.guild.members({region: 'us', realm: 'proudmoore', name: 'black wolf mercenaries'}, callback); | ||
bnet.wow.guild.members({origin: 'us', realm: 'proudmoore', name: 'black wolf mercenaries'}, callback); | ||
``` | ||
@@ -540,3 +540,3 @@ | ||
```javascript | ||
bnet.wow.guild.achievements({region: 'us', realm: 'proudmoore', name: 'black wolf mercenaries'}, callback); | ||
bnet.wow.guild.achievements({origin: 'us', realm: 'proudmoore', name: 'black wolf mercenaries'}, callback); | ||
``` | ||
@@ -552,3 +552,3 @@ | ||
```javascript | ||
bnet.wow.guild.news({region: 'us', realm: 'proudmoore', name: 'black wolf mercenaries'}, callback); | ||
bnet.wow.guild.news({origin: 'us', realm: 'proudmoore', name: 'black wolf mercenaries'}, callback); | ||
``` | ||
@@ -564,3 +564,3 @@ | ||
```javascript | ||
bnet.wow.guild.challenge({region: 'us', realm: 'proudmoore', name: 'black wolf mercenaries'}, callback); | ||
bnet.wow.guild.challenge({origin: 'us', realm: 'proudmoore', name: 'black wolf mercenaries'}, callback); | ||
``` | ||
@@ -584,3 +584,3 @@ | ||
```javascript | ||
bnet.wow.pvp({region: 'us', bracket: '2v2'}, callback); | ||
bnet.wow.pvp({origin: 'us', bracket: '2v2'}, callback); | ||
``` | ||
@@ -602,3 +602,3 @@ | ||
```javascript | ||
bnet.wow.quest({region: 'us', quest: 13146}, callback); | ||
bnet.wow.quest({origin: 'us', quest: 13146}, callback); | ||
``` | ||
@@ -622,3 +622,3 @@ | ||
```javascript | ||
bnet.wow.realmStatus({region: 'us']}, callback); | ||
bnet.wow.realmStatus({origin: 'us']}, callback); | ||
``` | ||
@@ -629,3 +629,3 @@ | ||
```javascript | ||
bnet.wow.realmStatus({region: 'us', realms: ['proudmoore', 'blackrock', 'frostmourne']]}, callback); | ||
bnet.wow.realmStatus({origin: 'us', realms: ['proudmoore', 'blackrock', 'frostmourne']]}, callback); | ||
``` | ||
@@ -648,3 +648,3 @@ | ||
```javascript | ||
bnet.wow.recipe({region: 'us', id: 33994]}, callback); | ||
bnet.wow.recipe({origin: 'us', id: 33994]}, callback); | ||
``` | ||
@@ -667,3 +667,3 @@ | ||
```javascript | ||
bnet.wow.spell({region: 'us', id: 8056]}, callback); | ||
bnet.wow.spell({origin: 'us', id: 8056]}, callback); | ||
``` |