Webhook Subscription #27
Replies: 3 comments
-
I'd say it was not that difficult to implement Strava webhooks. I used for it this package: https://github.com/spatie/laravel-webhook-client. With it you can easily handle incoming webhooks in the background jobs. You need to remember about few things:
For more discussions on Strava API you may join https://groups.google.com/g/strava-api |
Beta Was this translation helpful? Give feedback.
-
Webhooks would be great. I'm in the process of implementing them on a Strava Laravel app, outside of this package. I've contributed here in the past so there's a chance I will submit a PR at some point. I can't promise anything though, especially since the implementation will be an MVP of sorts, good enough for me but not for others. I'm not going to bother covering all the edge cases or writing tests, not initially anyway. |
Beta Was this translation helpful? Give feedback.
-
Alright, so I built webhook functionality into my app over the weekend. Here's all the relevant code, without context: https://gist.github.com/breadthe/2787c4f6d6ac805ef9eb698a91b6a750 If you want a more in-depth discussion of how & why, I also wrote a blogpost: https://chasingcode.dev/blog/laravel-strava-webhook-solution/ |
Beta Was this translation helpful? Give feedback.
-
Firstly, thank you! Love the package ❤️
Next, is it hard to implement webhook subscription API? I think it would be a great addition to the available set of features.
https://developers.strava.com/docs/webhooks/
Thank you.
👍
Beta Was this translation helpful? Give feedback.
All reactions