Documentation Index
Fetch the complete documentation index at: https://docs.nippy.la/llms.txt
Use this file to discover all available pages before exploring further.
getState() checks a user’s state in a campaign before attempting a spin.
Usage
Parameters
User identifier from your system. Example:
user-123.Campaign ID. Example:
camp-abc.Response
Whether the user can spin right now.
Reason the user cannot spin. Values:
cooldown_active, spin_limit_reached, campaign_ended, or null.Number of spins used by the user in the campaign.
Maximum allowed spins.
-1 means unlimited.ISO 8601 timestamp when the user can spin again.
Pending prize to claim, if one exists.
Spin ID associated with the pending claim.
Pending prize to claim.
Deadline to claim the prize.

