What I'm trying to do: my endpoint returns a client data and provide the ability to return data changed from the last call. So I need to store timestamp and something like a hash of the request - so next time I'll provide it and receive only the newest data.
For those purposes, I'm going to use StoreClient a built-in utility. But as I understand it will operate secret value to access my stored data. And if clients will create few Zaps with my app, which use the same secret - their data won't be separated and as a result, I'll have issues.
I decided to use secret+ZapId
for that, seems logical, but as I understand it is not accessible.
For REST hooks it is possible to get Zap Id inside subscribing hook - but that's completely different and not suitable for my case.
Questions:
- How I can get zap id programmatically?
- Is it the correct way to use StoreClient in such a case?