Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shows [pokemoncaughtbytype] => Rk�)B1 after i use getstats() #26

Closed
milowei opened this issue Jul 30, 2016 · 2 comments
Closed

shows [pokemoncaughtbytype] => Rk�)B1 after i use getstats() #26

milowei opened this issue Jul 30, 2016 · 2 comments

Comments

@milowei
Copy link

milowei commented Jul 30, 2016

Im try to get stats and the pokemonCaughtByType is Rk����)��B1����,

$pokemonGoApi->getInventory()->getItems()->getStats()->getPokemonCaughtByType();
whats the encode should be?

@NicklasWallgren
Copy link
Owner

NicklasWallgren commented Jul 30, 2016

It's not possible to decode "pokemon_caught_by_type" as of yet. I will update once it's possible.

@Spettacolo83
Copy link

Spettacolo83 commented Aug 1, 2016

Hello there,
how can I get the info about all pokemon into pokemons array?

$pokemons = $pokemonGoApi->getInventory()->getItems()->getPokeBank();
for($i=0; $i<sizeof($pokemons); $i++)
{
    echo $pokemons[i]->getPokemonId(); // <- This line does not work
}

SOLVED:

foreach($pokemons as $key=>$item)
{
    echo $item->getPokemonId();
}

Thank you anyway! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants