Leoff00 / ta-pago-bot

Bot made with golang for follow and track workout of discord guild people
19 stars 3 forks source link

Strava OAuth2.0 + Webhook Integration #15

Open leo-the-nardo opened 8 months ago

leo-the-nardo commented 8 months ago

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/ image image

leo-the-nardo commented 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