Timeline.attachments
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ดูรายการเมธอดสำหรับทรัพยากรนี้ได้ที่ส่วนท้ายของหน้านี้
การนำเสนอแหล่งข้อมูล
หมายถึงเนื้อหาสื่อ เช่น รูปภาพ ที่สามารถแนบไปกับรายการในไทม์ไลน์ได้
{
"id": string,
"contentType": string,
"contentUrl": string,
"isProcessingContent": boolean
}
ชื่อพร็อพเพอร์ตี้ |
ค่า |
คำอธิบาย |
Notes |
id |
string |
รหัสของไฟล์แนบ |
|
contentType |
string |
ประเภท MIME ของไฟล์แนบ |
|
contentUrl |
string |
URL ของเนื้อหา |
|
isProcessingContent |
boolean |
บ่งบอกว่า contentUrl ไม่พร้อมใช้งานเนื่องจากเนื้อหาของไฟล์แนบยังคงอยู่ระหว่างการประมวลผล หากผู้โทรต้องการเรียกดูเนื้อหา ผู้โทรควรลองอีกครั้งในภายหลัง |
|
{
"id": string,
"contentType": string,
"contentUrl": string,
"isProcessingContent": boolean
}
ชื่อพร็อพเพอร์ตี้ |
ค่า |
คำอธิบาย |
Notes |
contentType |
string |
ประเภท MIME ของไฟล์แนบ |
|
contentUrl |
string |
URL ของเนื้อหา |
|
id |
string |
รหัสของไฟล์แนบ |
|
isProcessingContent |
boolean |
บ่งบอกว่า contentUrl ไม่พร้อมใช้งานเนื่องจากเนื้อหาของไฟล์แนบยังคงอยู่ระหว่างการประมวลผล หากผู้โทรต้องการเรียกดูเนื้อหา ผู้โทรควรลองอีกครั้งในภายหลัง |
|
วิธีการ
- ลบ
- ลบไฟล์แนบออกจากรายการในไทม์ไลน์
- รับ
- เรียกข้อมูลไฟล์แนบในรายการในไทม์ไลน์โดยใช้รหัสรายการและรหัสไฟล์แนบ
- แทรก
- เพิ่มไฟล์แนบใหม่ไปยังรายการในไทม์ไลน์
- list
- ส่งกลับรายการไฟล์แนบสำหรับรายการในไทม์ไลน์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-07-12 UTC
[null,null,["อัปเดตล่าสุด 2024-07-12 UTC"],[[["\u003cp\u003eRepresents media content, such as photos, that can be attached to timeline items.\u003c/p\u003e\n"],["\u003cp\u003eProvides properties like \u003ccode\u003eid\u003c/code\u003e, \u003ccode\u003econtentType\u003c/code\u003e, \u003ccode\u003econtentUrl\u003c/code\u003e, and \u003ccode\u003eisProcessingContent\u003c/code\u003e to describe the attachment.\u003c/p\u003e\n"],["\u003cp\u003eIncludes methods to manage attachments such as \u003ccode\u003edelete\u003c/code\u003e, \u003ccode\u003eget\u003c/code\u003e, \u003ccode\u003einsert\u003c/code\u003e, and \u003ccode\u003elist\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003econtentUrl\u003c/code\u003e might be temporarily unavailable if \u003ccode\u003eisProcessingContent\u003c/code\u003e is true, requiring the caller to retry later.\u003c/p\u003e\n"]]],[],null,["# Timeline.attachments\n\n\u003cbr /\u003e\n\nFor a list of [methods](#methods) for this resource, see the end of this page.\n\nResource representations\n------------------------\n\n\u003cbr /\u003e\n\nRepresents media content, such as a photo, that can be attached to a timeline item.\n\n```\n{\n \"id\": string,\n \"contentType\": string,\n \"contentUrl\": string,\n \"isProcessingContent\": boolean\n}\n```\n\n| Property name | Value | Description | Notes |\n|-----------------------|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `id` | `string` | The ID of the attachment. | |\n| `contentType` | `string` | The MIME type of the attachment. | |\n| `contentUrl` | `string` | The URL for the content. | |\n| `isProcessingContent` | `boolean` | Indicates that the contentUrl is not available because the attachment content is still being processed. If the caller wishes to retrieve the content, it should try again later. | |\n\n\u003cbr /\u003e\n\n```text\n{\n \"id\": string,\n \"contentType\": string,\n \"contentUrl\": string,\n \"isProcessingContent\": boolean\n}\n```\n\n| Property name | Value | Description | Notes |\n|-----------------------|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `contentType` | `string` | The MIME type of the attachment. | |\n| `contentUrl` | `string` | The URL for the content. | |\n| `id` | `string` | The ID of the attachment. | |\n| `isProcessingContent` | `boolean` | Indicates that the contentUrl is not available because the attachment content is still being processed. If the caller wishes to retrieve the content, it should try again later. | |\n\nMethods\n-------\n\n[delete](/glass/v1/reference/timeline/attachments/delete)\n: Deletes an attachment from a timeline item.\n\n[get](/glass/v1/reference/timeline/attachments/get)\n: Retrieves an attachment on a timeline item by item ID and attachment ID.\n\n[insert](/glass/v1/reference/timeline/attachments/insert)\n: Adds a new attachment to a timeline item.\n\n[list](/glass/v1/reference/timeline/attachments/list)\n: Returns a list of attachments for a timeline item."]]