This workflow is only part of the full automation that will share your latest workout via text message upon trigger.
Note that the trigger I've configured is part of an iOS automation for when I end a cycling workout on my Apple Watch, which then makes a GET
request to the Pipedream tigger URL to kick off this workflow.
Store your Peloton username and password as environment variables in your Pipedream settings here:
https://pipedream.com/settings/env-vars
Based on this unofficial API documentation:
https://github.com/geudrik/peloton-client-library/blob/master/API_DOCS.md
Uses this URL structure to insert the workout ID of the most recent workout:https://members.onepeloton.com/profile/workouts/{{steps.make_peloton_request.me.data[0].id}}?utm_source=ios_app&utm_medium=in_app