Armax / Pokemon-GO-node-api

Pokemon GO api node.js library
MIT License
875 stars 198 forks source link

Added Level Up Rewards, UseItemEggIncubator, GetHatchedEggs, UseItemXpBoost (lucky egg) and fixed double firing callbacks. #154

Closed cokeeffekt closed 8 years ago

cokeeffekt commented 8 years ago

Callbacks should only be able to fire once, i've fixed up all the callbacks that fire twice. All of them were in try catch blocks. Fired once for try and a second time for catch.

This commit will allow the ability to use async libraries with out blowing up.

fullstackhacker commented 8 years ago

looks good

antonrez89 commented 8 years ago

hey, guys, how can I khow the current level of user? I can use LevelUpRewardsMessage and check if RewardStatus equals AWARDED_ALREADY, but it looks ugly.

cokeeffekt commented 8 years ago

@antoxxxa-2 player stats is on the inventory-items object as a entry that has player-stats set.

WesVleuten commented 8 years ago

Merging this would be great!

Dwynr commented 8 years ago

{ Error: Missing at least one required field for Message .ResponseEnvelop.UseItemEggIncubatorResponse: egg_incubator

Jamby93 commented 8 years ago

Could anyone push this commit to npm repository? I would really like to have this try-catch fix but I would like to stick to npm dependency instead of cloning from github.