stravalib.client.Client.handle_subscription_callback#

Client.handle_subscription_callback(raw: dict[str, Any], verify_token: str = 'STRAVA') dict[str, str][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]