02-22-2023 01:21 PM - last edited on 07-06-2023 04:43 PM by LouB
Hi, I am not sure if this is the right place to ask this but I will just go ahead:
I am trying to set up a webhook to strava and followed this guide. I think I made a mistake when sending the request to the push_subscriptions endpoint and did not save the response from it. Now I would like to delete the subscription as described in this article.
Because I did not save the response from the first request I do not know my subscription ID. To retrieve this ID I tried to make a GET request to the push_subscriptions endpoint and view the subscription, as described in the article aswell. This however does not work and returns this errror:
The request I sent to receive this errror was the following (in Python):
When trying to just subscribe again, I just get the error that a subscription already exists, so I do want to delete it or at least be able to view it.
I would really appreciate some help with this issue, and sorry if there is a better place to ask these kind of questions.
Kindest Regards,
Patrick
Solved! Go to Solution.
02-24-2023 07:05 AM
Have you tried with cURL directly? I just tried with my site and it worked exactly as expected. For the client id and secret you can grab them from https://www.strava.com/settings/api
%> curl -G https://www.strava.com/api/v3/push_subscriptions -d client_id=<YOUR_ID_HERE> -d client_secret=<YOUR_SECRET_HERE>
Note: If you're using Windows, use powershell and run curl.exe (don't just use plain curl, it's a wrapper around Invoke-WebRequest)
02-24-2023 07:05 AM
Have you tried with cURL directly? I just tried with my site and it worked exactly as expected. For the client id and secret you can grab them from https://www.strava.com/settings/api
%> curl -G https://www.strava.com/api/v3/push_subscriptions -d client_id=<YOUR_ID_HERE> -d client_secret=<YOUR_SECRET_HERE>
Note: If you're using Windows, use powershell and run curl.exe (don't just use plain curl, it's a wrapper around Invoke-WebRequest)
02-23-2023 01:57 PM
I have the same problem
04-30-2023 03:35 AM - edited 04-30-2023 03:45 AM
I also have that problem...any news here?
Direct curl like the one from the documentation with the righ client_id and client_secret does not work either
Welcome to the Community - here is your guide to help you get started!