Closed archatas closed 10 months ago
I have changed that function. Although, I think the event api is kind of ignorable in favor of notification, where you see the processed events too (and failed), which is not true for the events api.
What is your use case? Maybe I am missing something
In my Django app, I am syncing all info from Paddle Billing with analogous models on Django for the ability to have a dashboard or statistics later depending on further ideas and future requirements.
In general, Event objects are retrieved by webhooks, and it might be useful to sync past events before getting the new ones for any possible statistics.
If I understand correctly, when a change happens at Paddle Billing, and event is created. If there are Notification settings (maybe more than one, e.g. your website + affiliate website, or multiple of your websites that share the same Paddle account, then notifications are created for each of those notification settings.
By the way, thank you again for such a quick reaction!
Yes, you need notification settings to get events via webhook.
I am working on a Django package which utilize this client package. My flow is that you store many different models and every write comes from paddle notification, so works as a reading "cache". If there is unprocessed you can replay those notifications, you can filter to those by query.
Before activating the notification, you can fetch all models to get the current state, if you have past events.
I will think about how useful to get the events to get some kind of analytics, but there is a new endpoint to get reports, so maybe that can be used to show some cool charts in your admin.
What's the name of your Django package? I don't want to have a name clash. As I am also planning to release it.
django-paddle-billing or dj-paddle-billing, it's not published yet
Mine is django-paddle-billing and will be a paid one. Also unpublished yet. If you are alright with dj-paddle-billing, then there is no need to renaming anything. Otherwise, I need to think of something different.
That still mean the same, in the readme the title still Django Paddle Billing, so "seo" wise, there should be some better names which differenciate the two package
OK. Then I take the name dj-paddle-subscriptions. :)
Good name. Thanks for the flexibility :)
Thanks for the great package! Without it my API calls would probably be without type checking, so less robust.
🐛 Bug Report
The client.list_events() method doesn't support pagination although it should according to documentation (and in general it makes sense to have events paginations, because there will be a lot of them in an active project.
https://developer.paddle.com/api-reference/events/list-events
Error raised:
🔬 How To Reproduce
Steps to reproduce the behavior:
paginate(client.list_events)
Code sample
Environment