Số lượng album tối đa cần trả về trong phản hồi. Số lượng đĩa nhạc trả về có thể ít hơn số lượng được chỉ định. pageSize mặc định là 20, tối đa là 50.
pageToken
string
Mã thông báo tiếp tục để nhận trang tiếp theo của kết quả. Việc thêm thông tin này vào yêu cầu sẽ trả về các hàng sau pageToken. pageToken phải là giá trị được trả về trong tham số nextPageToken trong phản hồi cho yêu cầu listSharedAlbums.
excludeNonAppCreatedData
boolean
Nếu được đặt, kết quả sẽ loại trừ các mục nội dung nghe nhìn không phải do ứng dụng này tạo. Mặc định là false (tất cả album đều được trả về). Trường này sẽ bị bỏ qua nếu bạn sử dụng phạm vi photoslibrary.readonly.appcreateddata.
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
Danh sách album được chia sẻ mà bạn yêu cầu.
Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:
[null,null,["Cập nhật lần gần đây nhất: 2025-01-30 UTC."],[[["This method lists all shared albums accessible in the Sharing tab of the user's Google Photos app, returning a maximum of 50 albums per request."],["The request must be a `GET` request to the `https://photoslibrary.googleapis.com/v1/sharedAlbums` endpoint and can include optional parameters for pagination and filtering."],["The response includes a list of shared albums and a token for retrieving additional albums if available."],["Authorization is required using one of the specified OAuth scopes, granting varying levels of access to the user's photo library."],["This method will be deprecated on March 31, 2025, due to changes in Photos APIs, so refer to the provided update documentation for migration instructions."]]],["This content outlines how to retrieve a list of shared albums from Google Photos using the `listSharedAlbums` method. It involves sending a `GET` request to `https://photoslibrary.googleapis.com/v1/sharedAlbums` with optional `pageSize`, `pageToken`, and `excludeNonAppCreatedData` query parameters. The request body must be empty. The response contains a list of `sharedAlbums` and a `nextPageToken` for pagination, with the response format being in JSON. Authentication requires one of three specific OAuth scopes. The method will be discontinued on March 31, 2025.\n"]]