Bạn đang xem tài liệu cũ về API Thư viện Google Photos.
Method: albums.get
Trả về album dựa trên albumId
được chỉ định. albumId
phải là mã nhận dạng của một album do người dùng sở hữu hoặc một album chia sẻ mà người dùng đã tham gia.
Yêu cầu HTTP
GET https://photoslibrary.googleapis.com/v1/albums/{albumId}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
albumId |
string
Bắt buộc. Số nhận dạng của album cần yêu cầu.
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của Album
.
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau:
https://www.googleapis.com/auth/photoslibrary
https://www.googleapis.com/auth/photoslibrary.readonly
https://www.googleapis.com/auth/photoslibrary.readonly.appcreateddata
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-09-12 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-09-12 UTC."],[[["This endpoint retrieves a specific album using its unique identifier (`albumId`)."],["The request must include the `albumId` of an album the user owns or has joined as a path parameter."],["An empty request body is required, and a successful response returns the album details."],["Authorization is necessary using one of the specified OAuth scopes for Photos Library access."]]],["This outlines retrieving an album via a `GET` request to `https://photoslibrary.googleapis.com/v1/albums/{albumId}`, where `albumId` is a required path parameter. The request body must be empty. A successful response returns an `Album` instance. Authorization requires one of three specified OAuth scopes. Only the album owner or members of a shared album can use the albumId to retreive the album.\n"]]