vtex-apps / availability-notify

3 stars 3 forks source link

Instead of an email how about a request? #28

Open victorshp opened 2 years ago

victorshp commented 2 years ago

Hi!

I very much liked the idea of your app! Congrats!

Though, as the email trigger is not entirely suitable for my current needs, I would like to know if instead of triggering an email to my customer, I could configure my store to send an HTTP POST request with the customer and product info to one of my domains so I can manipulate the data and make some automations of my own.

Thanks in advance,

Victor P.

albertm805 commented 2 years ago

Hi @victorshp,

I think this may be possible through a custom implementation. The way the app works is by using the broadcaster, it identifies the current users subscribed to the skus, then when it senses an inventory change it sends out the email based on the amount of users subscribed to this specific sku.

I hope I answered your question. If you have any further questions let me know on how I can help.

PS. Maybe you can send a PR and we can review this as and see if is a good approach for a new feature.

Cheers, Alberto