Menu

Problem with Recieving Data (Key-Topic ?)

2014-10-24
2014-12-14
  • Holger Weich

    Holger Weich - 2014-10-24

    Hi,

    I updated the Version of Battle.net Armory Update and now my Application didn't work correctly. I think it has something to do with the Blizzard-Api-Key. Orded a new key yesterday.

    $armory = new BattlenetArmory('EU','Gorgonnash');
    $guild = $armory->getGuild('Unic');
    var_dump($guild);

    Output: object(Guild)#3 (10) { ["name":"Guild":private]=> string(4) "Unic" ["region":"Guild":private]=> string(2) "eu" ["realm":"Guild":private]=> string(10) "Gorgonnash" ["guildData":"Guild":private]=> bool(false) ["fields":"Guild":private]=> array(2) { [0]=> string(7) "members" [1]=> string(12) "achievements" } ["cache":"Guild":private]=> NULL ["emblemAdd":"Guild":private]=> bool(false) ["emblemHideRing":"Guild":private]=> bool(false) ["perks":"Guild":private]=> NULL ["guildRankTitles":"Guild":private]=> NULL }

    Any Idea what's going wrong here ?

    Thanks for your Support

     
  • Thomas Andersen

    Thomas Andersen - 2014-10-24

    Have you set this variable yet? $GLOBALS['wowarmory']['keys']['api']

    It's mandatory for the new blizzard API

     
  • Holger Weich

    Holger Weich - 2014-10-24

    Key should work. Character also works

    $armory = new BattlenetArmory('EU','Gorgonnash');
    $armory->setLocale('de_DE');
    $character = $armory->getCharacter("Ronaldo");

    var_dump($character); ....... I won't post it here ;). It's only a Problem with the Guild-Class/Connection. Maybe a Problem from Blizzard-Side ?

     
  • Thomas Andersen

    Thomas Andersen - 2014-10-24

    Ahh..
    try https://dev.battle.net/io-docs

    With the guild and realm you write it says:
    {
    "status": "nok",
    "reason": "Guild not found."
    }

    This is a current issue with battle.net
    http://us.battle.net/en/forum/topic/14881648540

    Has been going on for about a week that some guild cannot be found.

     
  • Holger Weich

    Holger Weich - 2014-10-24

    Okay, this could be. Our Realm has been connected with other Realms, maybe this causes the Problem of the Api. Thanks

     
  • samako

    samako - 2014-12-14

    Some changes to the API from bliz regarding item contexts, http://us.battle.net/en/forum/topic/14927203367

    In jsonConnect.class.php, you must modify the requested url to include the correct context for an item.

     

    Last edit: samako 2014-12-14

Log in to post a comment.

MongoDB Logo MongoDB