stravalib.client.Client.handle_subscription_callback#

Client.handle_subscription_callback(raw, verify_token='STRAVA')[source]#

Validate callback request and return valid response with challenge.

Parameters:
  • raw (dict) – The raw JSON response which will be serialized to a Python dict.

  • verify_token (default=model.Subscription.VERIFY_TOKEN_DEFAULT) –

Returns:

The JSON response expected by Strava to the challenge request.

Return type:

Dict[str, str]