Timeline.attachments
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源表示形式
表示可附加到时间轴项的媒体内容,例如照片。
{
"id": string,
"contentType": string,
"contentUrl": string,
"isProcessingContent": boolean
}
属性名称 |
值 |
说明 |
备注 |
id |
string |
附件的 ID。 |
|
contentType |
string |
附件的 MIME 类型。 |
|
contentUrl |
string |
内容的网址。 |
|
isProcessingContent |
boolean |
表示 contentUrl 不可用,因为附件内容仍在处理中。如果调用方想要检索内容,则应稍后重试。 |
|
{
"id": string,
"contentType": string,
"contentUrl": string,
"isProcessingContent": boolean
}
属性名称 |
值 |
说明 |
备注 |
contentType |
string |
附件的 MIME 类型。 |
|
contentUrl |
string |
内容的网址。 |
|
id |
string |
附件的 ID。 |
|
isProcessingContent |
boolean |
表示 contentUrl 不可用,因为附件内容仍在处理中。如果调用方想要检索内容,则应稍后重试。 |
|
方法
- 删除
- 从时间轴内容中删除附件。
- get
- 根据内容 ID 和附件 ID 检索时间轴项目的附件。
- insert
- 向时间轴项添加新附件。
- list
- 返回时间轴项的附件列表。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-07-12。
[null,null,["最后更新时间 (UTC):2024-07-12。"],[[["\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."]]