write_download_media
Download a profile photo or video by hash to a new local file, choosing an absolute save path; existing files are not overwritten, and the download is hash-checked.
Instructions
Download one of the profile's photos or videos (by hash, see read_workout or read_exercise) to a new file on this computer. saveTo is an absolute path (~/ allowed): a directory gets "."; a file name must end in the extension of the file's type (.jpg, .png, .webp, .gif, .mp4, .mov, .webm). An existing file is never overwritten. The download is checked against its hash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | ||
| saveTo | Yes |