loldevs / riotapi

A general purpose api for all things riot
loldevs.github.io
Apache License 2.0
48 stars 14 forks source link

retrieveInProgressSpectatorGameInfo > game > team #31

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi, I am trying out this lib but I'm not getting any team data (participant list always empty). What could be wrong?

strangeglyph commented 10 years ago

I'm not sure, it works for me:

teamOne = [PlayerParticipant(profileIconId=550, summonerLevel=0, accountId=201937915, clientInSynch=true, summonerId=43191640, lifetimeStatistics=[]), PlayerParticipant(profileIconId=663, summonerLevel=0, accountId=26723651, clientInSynch=true, summonerId=22748137, lifetimeStatistics=[]), PlayerParticipant(profileIconId=691, summonerLevel=0, accountId=206116248, clientInSynch=true, summonerId=49602948, lifetimeStatistics=[]), PlayerParticipant(profileIconId=691, summonerLevel=0, accountId=26453320, clientInSynch=true, summonerId=22526854, lifetimeStatistics=[]), PlayerParticipant(profileIconId=663, summonerLevel=0, accountId=32563797, clientInSynch=true, summonerId=28833441, lifetimeStatistics=[])]
teamTwo = [PlayerParticipant(profileIconId=666, summonerLevel=0, accountId=201124263, clientInSynch=true, summonerId=42029231, lifetimeStatistics=[]), PlayerParticipant(profileIconId=690, summonerLevel=0, accountId=211133338, clientInSynch=true, summonerId=59010201, lifetimeStatistics=[]), PlayerParticipant(profileIconId=682, summonerLevel=0, accountId=40230354, clientInSynch=true, summonerId=37481620, lifetimeStatistics=[]), PlayerParticipant(profileIconId=692, summonerLevel=0, accountId=212007491, clientInSynch=true, summonerId=60610343, lifetimeStatistics=[]), PlayerParticipant(profileIconId=576, summonerLevel=0, accountId=25586886, clientInSynch=true, summonerId=21898323, lifetimeStatistics=[])]

Could you paste your code?

ghost commented 10 years ago

Something like this? I get that there are no participants in the list.

        LoginQueue queue = new LoginQueue(Shard.NA);
        String authToken = queue.waitInQueueBlocking("username", "password");

        Shard server = Shard.NA;
        RtmpClient client = new DefaultRtmpClient(server.prodUrl, Shard.RTMPS_PORT, true);

            client.connect();
            client.authenticate("username", "password", authToken, "4.18.xx");
            PlatformGameLifecycle
                gameService =
                client.gameService.retrieveInProgressSpectatorGameInfo("Murdis");
            List<Participant> participantList = gameService.getGame().getTeamOnw();
            System.out.println(participantList.size());
strangeglyph commented 10 years ago

Oh, you seem to be on an old version of riotapi - the typo in the field (teamOnw instead of teamOne) has been fixed in v1.2.0

ghost commented 10 years ago

Oh, right. :D I didn't check for the newest version (and it looks like there's 1.5.0 already), thanks!