stravalib.client.Client.create_subscription

Client.create_subscription(client_id, client_secret, callback_url, verify_token='STRAVA')[source]

Creates a webhook event subscription.

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

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

  • callback_url (str) – callback URL where Strava will first send a GET request to validate, then subsequently send POST requests with updates

  • verify_token (str) – a token you can use to verify Strava’s GET callback request

Returns

An instance of stravalib.model.Subscription.

Return type

stravalib.model.Subscription

Notes:

verify_token is set to a default in the event that the author doesn’t want to specify one.

The appliction must have permission to make use of the webhook API. Access can be requested by contacting developers -at- strava.com.