Skip to content

Commit 9783cbb

Browse files
committed
Merge pull request #11 from LogansUA/fix-wow-data-methods
Fix data methods for WoW API
2 parents 798f1c5 + 15dda13 commit 9783cbb

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

src/Service/WorldOfWarcraft.php

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -362,49 +362,49 @@ public function getSpell($spellId, array $options = [])
362362
// region Data resources API
363363

364364
/**
365-
* Get battlegroups
365+
* Get data battlegroups
366366
*
367367
* The battlegroups data API provides the list of battlegroups for this region. Please note the trailing '/' on this URL
368368
*
369369
* @param array $options Options
370370
*
371371
* @return Response
372372
*/
373-
public function getBattlegroups(array $options = [])
373+
public function getDataBattlegroups(array $options = [])
374374
{
375375
return $this->request('/data/battlegroups/', $options);
376376
}
377377

378378
/**
379-
* Get character races
379+
* Get data character races
380380
*
381381
* The character races data API provides a list of each race and their associated faction, name, unique ID, and skin
382382
*
383383
* @param array $options Options
384384
*
385385
* @return Response
386386
*/
387-
public function getCharacterRaces(array $options = [])
387+
public function getDataCharacterRaces(array $options = [])
388388
{
389-
return $this->request('/data/character/races/', $options);
389+
return $this->request('/data/character/races', $options);
390390
}
391391

392392
/**
393-
* Get character classes
393+
* Get data character classes
394394
*
395395
* The character classes data API provides a list of character classes
396396
*
397397
* @param array $options Options
398398
*
399399
* @return Response
400400
*/
401-
public function getCharacterClasses(array $options = [])
401+
public function getDataCharacterClasses(array $options = [])
402402
{
403-
return $this->request('/data/character/classes/', $options);
403+
return $this->request('/data/character/classes', $options);
404404
}
405405

406406
/**
407-
* Get character achievements
407+
* Get data character achievements
408408
*
409409
* The character achievements data API provides a list of all of the achievements that characters can earn as well
410410
* as the category structure and hierarchy
@@ -413,41 +413,41 @@ public function getCharacterClasses(array $options = [])
413413
*
414414
* @return Response
415415
*/
416-
public function getCharacterAchievements(array $options = [])
416+
public function getDataCharacterAchievements(array $options = [])
417417
{
418-
return $this->request('/data/character/achievements/', $options);
418+
return $this->request('/data/character/achievements', $options);
419419
}
420420

421421
/**
422-
* Get guild rewards
422+
* Get data guild rewards
423423
*
424424
* The guild rewards data API provides a list of all guild rewards
425425
*
426426
* @param array $options Options
427427
*
428428
* @return Response
429429
*/
430-
public function getGuildRewards(array $options = [])
430+
public function getDataGuildRewards(array $options = [])
431431
{
432-
return $this->request('/data/guild/rewards/', $options);
432+
return $this->request('/data/guild/rewards', $options);
433433
}
434434

435435
/**
436-
* Get guild perks
436+
* Get data guild perks
437437
*
438438
* The guild perks data API provides a list of all guild perks
439439
*
440440
* @param array $options Options
441441
*
442442
* @return Response
443443
*/
444-
public function getGuildPerks(array $options = [])
444+
public function getDataGuildPerks(array $options = [])
445445
{
446-
return $this->request('/data/guild/perks/', $options);
446+
return $this->request('/data/guild/perks', $options);
447447
}
448448

449449
/**
450-
* Get guild achievements
450+
* Get data guild achievements
451451
*
452452
* The guild achievements data API provides a list of all of the achievements that guilds can earn as well as the
453453
* category structure and hierarchy
@@ -456,51 +456,51 @@ public function getGuildPerks(array $options = [])
456456
*
457457
* @return Response
458458
*/
459-
public function getGuildAchievements(array $options = [])
459+
public function getDataGuildAchievements(array $options = [])
460460
{
461-
return $this->request('/data/guild/achievements/', $options);
461+
return $this->request('/data/guild/achievements', $options);
462462
}
463463

464464
/**
465-
* Get item classes
465+
* Get data item classes
466466
*
467467
* The item classes data API provides a list of item classes
468468
*
469469
* @param array $options Options
470470
*
471471
* @return Response
472472
*/
473-
public function getItemClasses(array $options = [])
473+
public function getDataItemClasses(array $options = [])
474474
{
475-
return $this->request('/data/item/classes/', $options);
475+
return $this->request('/data/item/classes', $options);
476476
}
477477

478478
/**
479-
* Get talents
479+
* Get data talents
480480
*
481481
* The talents data API provides a list of talents, specs and glyphs for each class
482482
*
483483
* @param array $options Options
484484
*
485485
* @return Response
486486
*/
487-
public function getTalents(array $options = [])
487+
public function getDataTalents(array $options = [])
488488
{
489-
return $this->request('/data/talents/', $options);
489+
return $this->request('/data/talents', $options);
490490
}
491491

492492
/**
493-
* Get pet types
493+
* Get data pet types
494494
*
495495
* The different bat pet types (including what they are strong and weak against)
496496
*
497497
* @param array $options Options
498498
*
499499
* @return Response
500500
*/
501-
public function getPetTypes(array $options = [])
501+
public function getDataPetTypes(array $options = [])
502502
{
503-
return $this->request('/data/pet/types/', $options);
503+
return $this->request('/data/pet/types', $options);
504504
}
505505

506506
// endregion Data resources API

0 commit comments

Comments
 (0)