了解新的 Picker API 和重要的 Library API 变更。如需了解详情,请点击
此处。
Method: mediaItems.list
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eRetrieves a list of media items selected by a user during a specific Photos Picker session.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the session ID as a query parameter in the GET request.\u003c/p\u003e\n"],["\u003cp\u003eSupports pagination to retrieve large lists of media items.\u003c/p\u003e\n"],["\u003cp\u003eReturns an error if the user has not finished picking media items, prompting the application to poll until the session is ready.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/photospicker.mediaitems.readonly\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This describes retrieving a list of media items selected by a user within a specific session. A `GET` request to `https://photospicker.googleapis.com/v1/mediaItems` is used, with the `sessionId` as a required query parameter. Optional parameters include `pageSize` (max 100) and `pageToken` for pagination. The request body must be empty. A successful response includes an array of `mediaItems` and optionally a `nextPageToken`. If the session is incomplete, a `FAILED_PRECONDITION` error is returned, requiring polling. The authorization scope `https://www.googleapis.com/auth/photospicker.mediaitems.readonly` is needed.\n"],null,[]]