stravalib.client.Client.delete_subscription#

Client.delete_subscription(subscription_id: int, client_id: int, client_secret: str) → None[source]#

Unsubscribe from webhook events for an existing subscription.

Parameters:
  • subscription_id (int) – ID of subscription to remove.

  • client_id (int) – application’s ID, obtained during registration

  • client_secret (str) – application’s secret, obtained during registration

Return type:

Deletes the specific subscription using the subscription ID

Notes

Strava documents this call with the credentials in the URL query string. It also accepts them in a request body, which this method uses so that client_secret stays out of the URL. That body form is not documented, so it could stop working. It would fail loudly rather than quietly: every call would return 401.