Skip to content

Files

Latest commit

 

History

History

strava-webhook

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Strava Webhook

Strava activity post-processing in AWS Lambda:

  • rename activities
  • hide certain activities from home
  • save Strava activity info in DynamoDB

Setup

Config

Lambda function requires these enviroment variables:

  • ACTIVITY_DYNAMO_DB - dynamo DB with activityId as key
  • OAUTH_TOKEN_DYNAMO_DB - dynamo DB with userId as key
  • DYNAMO_DB_REGION - dynamo DB region
  • STRAVA_CLIENT_ID - your Strava client ID
  • STRAVA_CLIENT_SECRET - your Strava client secret
  • STRAVA_VERIFY_TOKEN - your Strava verify token

Testing

Call webhook URL with activity ID:

curl -X POST \
-H 'Content-Type: application/json' \
-d '{"object_id": 8366231264, "owner_id": 43239612}' \
WEBHOOK_URL/webhook