NicklasWallgren / PokemonGoAPI-PHP

Pokemon Go API PHP library
BSD 2-Clause "Simplified" License
130 stars 51 forks source link

Request: Check if Lucky Egg is set #40

Closed lambasoft closed 8 years ago

lambasoft commented 8 years ago

Hey, It would be great if you could add the option to check either a Lucky egg is set or not.

Ni42 commented 8 years ago

Pretty sure the server doesn't tell you from the API whether lucky egg is active or not.

NicklasWallgren commented 8 years ago

I believe you can find the information within AppliedItems.

// Retrieve the applied items instance
$appliedItems = $inventory->getAppliedItems();

// Retrieve the items within the applied items instance
$items = $appliedItems->getAppliedItems();

var_dump($items);
Ni42 commented 8 years ago

Oh right... So many files all over the place. XD