-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Bug]: There is no useful documentation on how to use webhook events #64
Comments
I eventually found something that looks like what I needed in #34 . But my point still stands: it is not documented what types are for what, there's no any reference to that example in any "well-known" documentation place (e.g. |
Hi @ribtoks ... We greatly appreciate the feedback around this. We settled on the use of testable examples within the SDK to ensure that the examples we provide show to be functional and compile as expected otherwise a build would fail at PR. I think as a minimum we need to ensure we're calling these out in the I'll also discuss with the team ways in which we can improve this across the board to provide a consistent approach with better documentation of our types and their usage. I'll keep this issue open while we look to make some initial improvements to the README, if you have any other issues, concerns or questions please continue to raise them 🙏 |
Thank you! One other comment is that it's hard to leave feedback for developers. GitHub Issues templates effectively say "if you want to leave feedback - send it to the [black hole] [email protected]". This current issue is effectively a feedback, it's obviously not a "bug" in a classical sense, but I figured it's the fastest way to get somebody competent to look into this. One way would be to have "Feedback" issue templates available or to have Discussions open. One "nitpick" comment about code example from #34 is that you are introducing a custom type ( |
What happened?
When you're trying to use this SDK, it's not clear at all how to handle any, even the most simple webhook.
Say, I want to handle "subscription created" webhook. What data types should I use?
paddle.SubscriptionCreatedEvent
or maybepaddlenotification.SubscriptionCreated
. I don't want to manually map json from the doc page to all types that look like that json, which are at least 3 (Notification
and those two I mentioned earlier). It will be very helpful if there were code examples.Not to mention that now every person who wants to use this code, needs to at least partically copy-paste the switch-case from
unmarshalEvent()
(fileevents.go
). Would be great if there was a recommended way to do this in an easy form.Steps to reproduce
What did you expect to happen?
To find code examples that show at leaast any way of using this.
Logs
No response
The text was updated successfully, but these errors were encountered: