#!/usr/bin/env python3
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
strava_access_token = '###'
api_instance = swagger_client.ActivitiesApi()
api_instance.api_client.configuration.access_token = strava_access_token
# api_instance = swagger_client.ActivitiesApi(swagger_client.ApiClient(configuration))
id = 4850353749 # Long | The identifier of the activity.
body = swagger_client.UpdatableActivity({"name": "what the fuck"})
try:
# Update Activity
api_response = api_instance.update_activity_by_id(id, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ActivitiesApi->updateActivityById: %s\n" % e)