REST Resource: users.messages.attachments
সম্পদ: মেসেজপার্টবডি
একটি একক MIME বার্তা অংশের মূল অংশ৷
JSON প্রতিনিধিত্ব |
---|
{
"attachmentId": string,
"size": integer,
"data": string
} |
ক্ষেত্র |
---|
attachmentId | string উপস্থিত হলে, একটি বাহ্যিক সংযুক্তির আইডি রয়েছে যা একটি পৃথক messages.attachments.get অনুরোধে পুনরুদ্ধার করা যেতে পারে। উপস্থিত না হলে, বার্তার অংশের অংশের সম্পূর্ণ বিষয়বস্তু ডেটা ক্ষেত্রের মধ্যে থাকে। |
size | integer বার্তা অংশের ডেটার জন্য বাইটের সংখ্যা (এনকোডিং সত্ত্বেও)। |
data | string ( bytes format) বেস64url এনকোডেড স্ট্রিং হিসাবে একটি MIME বার্তা অংশের বডি ডেটা৷ MIME কন্টেইনার প্রকারের জন্য খালি হতে পারে যেগুলির কোনও বার্তার বডি নেই বা যখন বডি ডেটা আলাদা সংযুক্তি হিসাবে পাঠানো হয়৷ একটি সংযুক্তি আইডি উপস্থিত থাকে যদি শরীরের ডেটা একটি পৃথক সংযুক্তিতে থাকে৷ একটি base64-এনকোডেড স্ট্রিং। |
পদ্ধতি |
---|
| নির্দিষ্ট বার্তা সংযুক্তি পায়. |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-14 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-14 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["`MessagePartBody` resource represents the body of a single MIME message part and can contain an attachment ID, size, and data."],["If an `attachmentId` is present, the attachment must be retrieved separately via `messages.attachments.get`; otherwise, the data field contains the entire body."],["`data` field stores the base64url-encoded body of the message part, potentially empty for container types or when sent as a separate attachment."],["Developers can use the `get` method to retrieve a specific message attachment using its ID."]]],["The `MessagePartBody` resource represents a MIME message part's body. It can be represented in JSON with fields for `attachmentId` (ID of an external attachment), `size` (data size in bytes), and `data` (base64url encoded string of the body). If `attachmentId` is present, content is external; otherwise, `data` contains the body. A `get` method is available to retrieve external message attachments via `messages.attachments.get`.\n"]]