bird amb attachment
Usage
Code example
bird amb attachment <message-id> <index> [flags]Description
Download and decrypt one attachment from an Apple Messages for Business message.
<index> is the attachment's zero-based position in the message's text.attachments
array; read the message with bird amb get to see its attachments. For a
received attachment, <message-id> is the message.id of the amb.received webhook
event. Bird copies a received attachment when the message arrives and keeps the
copy for 30 days: a retryable error that carries the seconds to wait means the
copy is still arriving, a gone error that Bird has none.
The bytes are written to --output when set, otherwise to stdout:
bird amb attachment amb_123 0 --output photo.jpg
Examples
Code example
bird amb attachment <message-id> <index> --output photo.jpgOptions
| Name | Description |
|---|---|
--output, -o | Write the bytes to this file instead of stdout |
Related
| Name | Description |
|---|---|
bird amb get | Get a message |
bird amb list | List messages |
bird amb list-events | List events for a message |
bird amb send | Reply to an Apple Messages conversation |
Related resources
Continue with the documentation, guides and examples for this topic.