Ejemplo n.º 1
0
 /**
  * Get boss.
  *
  * @param int $bossId
  * @return array
  */
 public function getBoss($bossId)
 {
     return $this->client->fetchData('boss/' . intval($bossId), [], '', $this->client->getSeconds(Cache::getLifetimeLong()));
 }
Ejemplo n.º 2
0
 /**
  * Get pet types.
  *
  * @return array
  */
 public function getPetTypes()
 {
     return $this->client->fetchData('data/pet/types', [], 'petTypes', $this->client->getSeconds(Cache::getLifetimeLong()));
 }
Ejemplo n.º 3
0
 /**
  * Get item set.
  *
  * @param int $setId
  * @return array
  */
 public function getItemSet($setId)
 {
     return $this->client->fetchData('item/set/' . intval($setId), [], '', $this->client->getSeconds(Cache::getLifetimeLong()));
 }
Ejemplo n.º 4
0
 /**
  * Get quest.
  *
  * @param $questId
  * @return array
  */
 public function getQuest($questId)
 {
     return $this->client->fetchData('quest/' . intval($questId), [], '', $this->client->getSeconds(Cache::getLifetimeLong()));
 }
Ejemplo n.º 5
0
 /**
  * Get recipe.
  *
  * @param int $recipeId
  * @return array
  */
 public function getRecipe($recipeId)
 {
     return $this->client->fetchData('recipe/' . intval($recipeId), [], '', $this->client->getSeconds(Cache::getLifetimeLong()));
 }
Ejemplo n.º 6
0
 /**
  * Get spell.
  *
  * @param int $spellId
  * @return array
  */
 public function getSpell($spellId)
 {
     return $this->client->fetchData('spell/' . intval($spellId), [], '', $this->client->getSeconds(Cache::getLifetimeLong()));
 }
Ejemplo n.º 7
0
 /**
  * Get pet species.
  *
  * @param $speciesId
  * @return array
  */
 public function getPetSpecies($speciesId)
 {
     return $this->client->fetchData('pet/species/' . intval($speciesId), [], '', $this->client->getSeconds(Cache::getLifetimeLong()));
 }
Ejemplo n.º 8
0
 /**
  * Get mounts.
  *
  * @return array
  */
 public function getMounts()
 {
     return $this->client->fetchData('mount/', [], 'mounts', $this->client->getSeconds(Cache::getLifetimeLong()));
 }
Ejemplo n.º 9
0
 /**
  * Get achievement.
  *
  * @param int $achievementId
  * @return array
  */
 public function getAchievement($achievementId)
 {
     $path = 'achievement/' . intval($achievementId);
     return $this->client->fetchData($path, [], '', $this->client->getSeconds(Cache::getLifetimeLong()));
 }
Ejemplo n.º 10
0
 /**
  * Get rewards.
  *
  * @return array
  */
 public function getRewards()
 {
     return $this->client->fetchData('data/rewards', [], '', $this->client->getSeconds(Cache::getLifetimeLong()));
 }
Ejemplo n.º 11
0
 /**
  * Get artisan.
  *
  * @param string $artisan
  * @return array
  */
 public function getArtisan($artisan)
 {
     return $this->client->fetchData('data/artisan/' . $artisan, [], '', $this->client->getSeconds(Cache::getLifetimeLong()));
 }