/** * Get boss. * * @param int $bossId * @return array */ public function getBoss($bossId) { return $this->client->fetchData('boss/' . intval($bossId), [], '', $this->client->getSeconds(Cache::getLifetimeLong())); }
/** * Get pet types. * * @return array */ public function getPetTypes() { return $this->client->fetchData('data/pet/types', [], 'petTypes', $this->client->getSeconds(Cache::getLifetimeLong())); }
/** * 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())); }
/** * Get quest. * * @param $questId * @return array */ public function getQuest($questId) { return $this->client->fetchData('quest/' . intval($questId), [], '', $this->client->getSeconds(Cache::getLifetimeLong())); }
/** * Get recipe. * * @param int $recipeId * @return array */ public function getRecipe($recipeId) { return $this->client->fetchData('recipe/' . intval($recipeId), [], '', $this->client->getSeconds(Cache::getLifetimeLong())); }
/** * Get spell. * * @param int $spellId * @return array */ public function getSpell($spellId) { return $this->client->fetchData('spell/' . intval($spellId), [], '', $this->client->getSeconds(Cache::getLifetimeLong())); }
/** * Get pet species. * * @param $speciesId * @return array */ public function getPetSpecies($speciesId) { return $this->client->fetchData('pet/species/' . intval($speciesId), [], '', $this->client->getSeconds(Cache::getLifetimeLong())); }
/** * Get mounts. * * @return array */ public function getMounts() { return $this->client->fetchData('mount/', [], 'mounts', $this->client->getSeconds(Cache::getLifetimeLong())); }
/** * 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())); }
/** * Get rewards. * * @return array */ public function getRewards() { return $this->client->fetchData('data/rewards', [], '', $this->client->getSeconds(Cache::getLifetimeLong())); }
/** * Get artisan. * * @param string $artisan * @return array */ public function getArtisan($artisan) { return $this->client->fetchData('data/artisan/' . $artisan, [], '', $this->client->getSeconds(Cache::getLifetimeLong())); }