stravalib.client.Client.create_subscription#
- Client.create_subscription(client_id: int, client_secret: str, callback_url: str, verify_token: str = 'STRAVA') Subscription [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 (Default value = model.Subscription.VERIFY_TOKEN_DEFAULT)
- Returns:
class
- 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 application must have permission to make use of the webhook API. Access can be requested by contacting developers -at- strava.com. An instance of
stravalib.model.Subscription
.