Webhook-driven daily rewards
What's new
Daily reward programs now accept an optional webhook_id. When set, Aghanim asks your backend which items to grant for each reward day instead of using the items configured statically on the program. The shared WebhookEventType enum gained a matching daily_reward.get value.
Impact
Daily rewards can be personalized per player and changed without editing the program. Programs without a webhook_id keep behaving exactly as before, and a webhook-driven program silently falls back to its static items if your endpoint fails or times out.
Changes
| Resource | Change |
|---|---|
| create_daily_reward, update_daily_reward | Added optional webhook_id to the request body |
| get_daily_reward, get_daily_rewards, copy_daily_reward | Added webhook_id to the daily reward read model |
| Components | Added daily_reward.get to WebhookEventType |
Upgrade
- No action required. Existing programs are unaffected.
- To make a program webhook-driven, set
webhook_idto a webhook subscribed todaily_reward.getand implement the daily reward webhook on your server.
도움이 필요하세요?
통합팀에 문의하십시오 [email protected]