Skip to content

gjwillso/training-stats

Repository files navigation

Strava Training App

Simple App to track training progress

Package with

aws cloudformation package --template-file ./template.yaml --s3-bucket training-stats --output-template-file packaged.template.yaml

Deploy with

aws cloudformation deploy --template-file ./packaged.template.yaml --stack-name training-stats --capabilities CAPABILITY_IAM

Activation Service with Subscription push

curl -X POST https://www.strava.com/api/v3/push_subscriptions
-F client_id=<client_id>
-F client_secret=<client_secret>
-F 'callback_url=http://a-valid.com/url'
-F 'verify_token=STRAVA'

This will trigger a callback validation from the Strava Subscription service in the form of a GET request made to the curlback_url provided in the above subscription push.

Example Validation Request $ GET https://mycallbackurl.com?hub.verify_token=STRAVA&hub.challenge=15f7d1a91c1f40f8a748fd134752feb3&hub.mode=subscribe

Notes

{ "TableName": "table-name", "Item": { "object_id": {"N": $input.json('$.object_id')}, "event_time": {"N": $input.json('$.event_time')} } }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages