tejado / pgoapi

Pokemon Go API lib
Other
1.4k stars 445 forks source link

Add method for getting the rewards from gyms #64

Open onnimonni opened 8 years ago

onnimonni commented 8 years ago

Hey!

In the game I can get rewards by owning gyms. Usually the servers go down during evening when I would want to do this and It would be awesome to have a script which I could use for this instead.

Have you found out the method for cashing the rewards (coins+dust) from currently owned gyms?

Also how can I discover the current cooldown time for next rewards?

dnsBlah commented 8 years ago

In the profile you an find how long/when you can collect again

player_data {
....
daily_bonus {
    next_defender_bonus_collect_timestamp_ms: 1469628924902
  }
....
}

and proto CollectDailyBonusMessage_pb2 CollectDailyBonusMessage_pb2

I guess :)