通过任何 Google 相册 API 创建的资源只能使用创建这些资源时所用的原始客户端 ID 进行访问或修改。例如,如果您使用特定客户端 ID 在 Picker API 中创建了 session,但后来在应用中更改了该客户端 ID,则您的应用将无法再访问使用之前的客户端 ID 创建的任何 API 资源。
请仔细规划,为您使用的 Google 相册 API 选择正确的客户端 ID 类型。请仅在绝对必要时更改您的客户端 ID,以免出现访问问题。
[[["易于理解","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-02-26。"],[[["To use Google Photos APIs, enable them in your Google API Console project and set up an OAuth 2.0 client ID for user authentication."],["Google Photos APIs require user sign-in with a Google Account and do not support service accounts."],["Before launching publicly, your application needs to be verified by Google to remove the \"Unverified app\" message."],["Resources created with a specific client ID can only be accessed or modified using the same ID; changing it may lead to access issues."],["You can get started with either the Picker API or the Library API after configuring your application."]]],["To utilize Google Photos APIs, enable them in your project via the Google API Console. Then, request an OAuth 2.0 client ID, selecting your application type and registering authorized JavaScript origins and redirect URIs. Copy the client ID and secret for your app's use. Note that user sign-in via a valid Google Account is necessary. Applications must be verified by Google before public launch, and client ID changes can cause access issues to previously created resources.\n"]]