varincentives_list=awaithiro.incentivesSenderList(session)forincentiveinincentives_list:# Iterate over the key-value pairs in the Claims objectforkeyinincentive.Claims.keys():varvalue=incentive.Claims[key]print("%s claimed at %s."%[key,value.ClaimTimeSec])# Iterate over the UnclaimedRecipients arrayforuser_idinincentive.UnclaimedRecipients:print("%s has not yet claimed."%user_id)
varincentive_sender_create_request=Hiro.IncentiveSenderCreateRequest.new()incentive_sender_create_request.id="coin-invite"varresult=awaithiro.incentivesSenderCreate(session,incentive_sender_create_request)print(result.incentives[0].code)# <- code to send to another player!