Add a file from a link
add_media_from_urlPuts a file from a public https link on an alarm the person made: a picture or short video as the wallpaper, a song, or a voiceover. For a file at a public https link; a file only on the person's device needs the one-time page instead. LFG fetches the file, checks it like any upload, replaces what that slot had, and adds it to the person's uploads. A link that cannot be fetched, or a file that is not an accepted type, returns an error. What each takes. Wallpaper: a square (1:1) picture, about 1080 x 1080 pixels, as JPEG, PNG, WebP or GIF up to 50MB; a picture that is not square is cropped to a square. Or a square MP4 or MOV video, or a GIF that loops, up to 30 seconds and 50MB; a video needs a paid plan, a GIF does not. Song or voiceover: MP3, M4A, OGG, WAV or FLAC up to 5 minutes and 20MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The alarm's id. | |
| url | Yes | A public https link straight to the file. | |
| use | Yes | wallpaper, song, or voiceover. | |
| name | No | What to call the file in the person's library, "Soccer team anthem". When absent, the file's own title or name. |