From 91565d840eab0bac5740263efaf1c656acee7b63 Mon Sep 17 00:00:00 2001 From: Eriks K Date: Tue, 5 Jan 2021 19:18:20 +0200 Subject: [PATCH] Added endpoint for collect all WC rewards --- erepublik/access_points.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erepublik/access_points.py b/erepublik/access_points.py index f859cee..f54d37f 100644 --- a/erepublik/access_points.py +++ b/erepublik/access_points.py @@ -595,6 +595,10 @@ class ErepublikProfileAPI(CitizenBaseAPI): data = dict(_token=self.token, rewardId=reward_id) return self.post(f"{self.url}/main/weekly-challenge-collect-reward", data=data) + def _post_main_weekly_challenge_collect_all(self, max_reward_id: int) -> Response: + data = dict(_token=self.token, maxRewardId=max_reward_id) + return self.post(f"{self.url}/main/weekly-challenge-collect-all", data=data) + def _post_main_profile_update(self, action: str, params: str): data = {"action": action, "params": params, "_token": self.token} return self.post(f"{self.url}/main/profile-update", data=data)