I need some help figuring out some things about webhooks.
Well first of all, what I’m trying to achieve is to have my database to be synced with my patreon. So that I know which user has which pledge amount and whether they are active or not.
This way i can make db request on my server to determine user permissions instead of making api requests everytime i want to be sure that the user is pledging a required amount to access parts of my website.
So my question is: are webhooks the way to go here?
And if yes then i have some questions about them
Is webhook response always the same regardles of which hook trigered it? (basicly an info dump about user status and his membership)
Are webhooks guaranteed to be sequential. This might be a dumb one(i never used webhooks), but can hook members:update trigger before members:create on the same member?
Or if user creates a pledge and immediately cancels is pledge:delete guaranteed to come after pledge:create? Or should i timestamp most recent change in my DB and execute change comming from the hook only if it is more recent that previous hook change?
Documentation is slightly vague about what EXACTLY triggers each webhook. Like if i get a new member and have both members:update and members:create hooks set up, will they both fire? Or will i get one response only?
lets say patreon changes their pledge amount, will members:update also trigger? Or only members:pledge:update?
will pledge deletion trigger only members:pledge:delete or will it also trigger members:pledge:update and subsequently members:update?
is members.update one-size-fits-all sort of trigger? Can i just setup hook on that trigger and be sure that i will get all the information about new patreons changes in pledges etc etc?
I would really appreciate any help!