I see that you already provide a fmcToken property in the Update User endpoint.
I’m not sure what is that, but I guess is for mobile only, right? So I hope my suggestion is not a duplicate of that.
But to make a Peach web app, webhooks on new matches and new messages would be useful.
- When the user post to the update user endpoint, it could optionally provide a destination URL for the webhooks.
- On updates, the web app server gets a post request with encrypted data or no data at all from peach. From the URL where it's receiving, it knows which user to notify.
- The server notifies the user by mail or telegram that there is an update on one of her/his trades.
- The user opens the browser and fetches and decrypts the new data.
PS: I am aware the browser is not the most secure option when it comes to bitcoin, but in my opinion is an acceptable tradeoff in some circumstances, like for a disposable account where a nocoiner is buying bitcoin to pay an invoice on Btcpay Server and then the mnemonic is destroyed.
I see that you already provide a
fmcTokenproperty in the Update User endpoint.I’m not sure what is that, but I guess is for mobile only, right? So I hope my suggestion is not a duplicate of that.
But to make a Peach web app, webhooks on new matches and new messages would be useful.
PS: I am aware the browser is not the most secure option when it comes to bitcoin, but in my opinion is an acceptable tradeoff in some circumstances, like for a disposable account where a nocoiner is buying bitcoin to pay an invoice on Btcpay Server and then the mnemonic is destroyed.