Open leo-the-nardo opened 8 months ago
@Luisgustavom1 since the enchancment https://github.com/Leoff00/ta-pago-bot/issues/12 also needs HTTP Webhook endpoint for integration with Asaas payment gateway. I'll start working on it soon. The HTTP infrastructure will serve both features endpoints. If necessary, only send commits about domain services/stuff. and expect for dto's on services input that controllers/handlers need to send to them
Think about possibilites with the webhooks
@Luisgustavom1 suggested that it be possible to count a day-submission by the webhook event.
Also It is interesting that the bot notifies the channel of each submission coming from the webhook, so that other users can know about the existence of the integration.
We also need public HTTP API Endpoint to make this. (Receive webhooks and put in redirect_uri on auth) - I suggest we use Chi-Router (if necessary), not big frameworks. I don't know if we need a domain, maybe a public IP would be enough (check this)
https://developers.strava.com/docs/webhooks/ https://developers.strava.com/docs/authentication/