Method: spaces.messages.attachments.get
طلب HTTP
GET https://chat.googleapis.com/v1/{name=spaces/*/messages/*/attachments/*}
يستخدم عنوان URL بنية تحويل الترميز gRPC.
معلمات المسار
المَعلمات |
name |
string
مطلوبة. اسم المورد للمرفق، بالنموذج spaces/{space}/messages/{message}/attachments/{attachment} .
|
نص الطلب
يجب أن يكون نص الطلب فارغًا.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال Attachment
.
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/chat.bot
لمزيد من المعلومات، يُرجى الاطّلاع على دليل التفويض.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-05-16 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-05-16 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Retrieves metadata of a message attachment, with the actual attachment data fetched separately using the media API."],["Requires the `chat.bot` OAuth scope and app authentication for access."],["Uses a `GET` request to the specified URL with the attachment's resource name as a path parameter."],["Returns an `Attachment` object in the response body upon successful execution."],["Refer to the provided links for a practical example and further details on media download and authorization."]]],[]]