bird sms media
Usage
bird sms media <message-id> <media-id> [flags]Description
Download the media on a received MMS message: an image, video, audio clip or document. The media id is the id on the message's media entry,
which bird sms get returns.
The bytes are written to --output when set, otherwise to stdout:
bird sms media sms_123 smf_456 --output photo.jpg
--url prints the short-lived download URL (valid for 15 minutes) instead of downloading, for handing to another tool. That URL is pre-authorized and needs no Authorization header; the follow-up request must not send one. --url and --output cannot be combined.
Media expires with its message, 30 days after it arrives, and this exits with a not-found error from then on. A gone error means only the file expired: the message still lists the media's mime_type and filename.
Examples
bird sms media <message-id> <media-id> --output photo.jpgOptions
| Name | Description |
|---|---|
--output, -o | Write the bytes to this file instead of stdout |
--url | Print the short-lived download URL instead of downloading |
Related
| Name | Description |
|---|---|
bird sms get | Get an SMS message |
bird sms list | List SMS messages |
bird sms list-events | List events for an SMS message |
bird sms send | Send an SMS or MMS message to one recipient |
Related resources
Continue with the documentation, guides and examples for this topic.