透過任何 Google Photos API 建立的資源,只能使用當初用來建立資源的原始用戶端 ID,來存取或修改資源。例如,如果您在 Picker API 中使用特定用戶端 ID 建立「工作階段」,之後又在應用程式中變更該用戶端 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"]],["上次更新時間:2024-11-11 (世界標準時間)。"],[[["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"]]