Skip to content

Feature request: provide webhooks #1

@learntheropes

Description

@learntheropes

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.

  1. When the user post to the update user endpoint, it could optionally provide a destination URL for the webhooks.
  2. 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.
  3. The server notifies the user by mail or telegram that there is an update on one of her/his trades.
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions