您正在查看 Google Photos Library API 的旧版文档。
Method: sharedAlbums.get
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
GET https://photoslibrary.googleapis.com/v1/sharedAlbums/{shareToken}
网址采用 gRPC 转码语法。
路径参数
参数 |
shareToken |
string
必需。要请求的影集的分享令牌。
|
响应正文
如果成功,则响应正文包含一个 Album
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/photoslibrary.sharing
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eRetrieves a shared album using its unique \u003ccode\u003eshareToken\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eRequires an empty request body and returns the album details in the response.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eGET\u003c/code\u003e HTTP method and requires \u003ccode\u003ephotoslibrary.sharing\u003c/code\u003e authorization scope.\u003c/p\u003e\n"],["\u003cp\u003eThe API endpoint follows gRPC Transcoding syntax for the URL structure.\u003c/p\u003e\n"]]],["The core content describes how to retrieve an album using a share token. A `GET` request is sent to the specified URL, including the required `shareToken` as a path parameter. The request body must be empty. A successful response returns an `Album` instance. This operation requires the `https://www.googleapis.com/auth/photoslibrary.sharing` authorization scope, as defined for sharing. There is also a try it option available to users.\n"],null,["# Method: sharedAlbums.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nReturns the album based on the specified `shareToken`.\n\n### HTTP request\n\n`GET https://photoslibrary.googleapis.com/v1/sharedAlbums/{shareToken}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------------|--------------------------------------------------------------|\n| `shareToken` | `string` Required. Share token of the album to be requested. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Album](/photos/library/legacy/reference/rest/v1/albums#Album).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/photoslibrary.sharing`"]]