GET/users/{userId}/mail/{mailId}/attachments/{attachmentId}
メールの添付ファイルをダウンロードする。
Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。
mail
mail.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | ユーザーを特定する ID (URL エンコードする)
required example : me |
| mailId | string | メール ID required example : 1 |
| attachmentId | string | 添付ファイル ID required example : 1 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| data | string | 添付ファイルのデータ (Base64 でエンコードされたデータ) required minLength : 1 |
| filename | string | 添付ファイル名 required minLength : 1 maxLength : 250 |
example
1{2 "data": "dGVzdA==",3 "filename": "file1.jpg"4}Bad Request
Not Found