Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: update Gumroad API request param #34

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dwisiswant0
Copy link

This commit introduces breaking changes to the Product struct & NewProduct func:

  • Deprecated the Product field in the Product struct.
  • Added ID field in the Product struct as replacement for Product field.
  • Updated the NewProduct function to accept & use product ID instead of the product permalink1.
  • Modified the VerifyWithContext method to use product_id1 parameter instead of product_permalink in the API req body.

Fix #33

Footnotes

  1. https://help.gumroad.com/article/76-license-keys#verification 2

This commit introduces breaking changes to the `Product` struct & `NewProduct` func:

* Deprecated the **Product** field in the `Product` struct.
* Added **ID** field in the `Product` struct as replacement for **Product** field.
* Updated the `NewProduct` function to accept & use product ID instead of the product permalink[^1].
* Modified the `VerifyWithContext` method to use **product_id**[^1] parameter instead of **product_permalink** in the API req body.

Fix caarlos0#33

[^1]: https://help.gumroad.com/article/76-license-keys#verification

Signed-off-by: Dwi Siswanto <me@dw1.io>
Signed-off-by: Dwi Siswanto <me@dw1.io>
Signed-off-by: Dwi Siswanto <me@dw1.io>
@dwisiswant0 dwisiswant0 marked this pull request as draft February 4, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gumroad API Break Changes
1 participant