Closed squatto closed 5 years ago
Code looks good, wondering though, does the “is_active” issue only affect new limited time codes or has it been an issue with codes already in the list?
Thanks! I'm actually not sure about that. This PR, in combination with #26, addresses that possibility though. I mention it in the PR notes.
This PR adds a
-shift-code
parameter that lets you redeem a single SHIFT code. The reason for this is twofold:I also added an
-allow-inactive
option that allows SHIFT codes to be redeemed even if the 2K API response says they are inactive. For example, the SHIFT code from that tweet above is5ZC3B-WRKHT-Z53CK-BTB33-CB9HA
, it is active right now, but the 2K API response is:WITHOUT
-allow-inactive
:WITH
-allow-inactive
:This is my first time modifying a go program, but I tried to follow your coding style and conventions. Feel free to fix anything I messed up ;)