適用於電視和有限輸入裝置的 OAuth 2.0 流程支援輸入功能有限的裝置,例如遊戲主機和影片攝影機。The YouTube Reporting and YouTube Analytics APIs do not currently support the OAuth 2.0 flow for devices.
服務帳戶流程的 OAuth 2.0 流程支援不需存取使用者資訊的伺服器對伺服器互動。
不過,YouTube Reporting API 和 YouTube Analytics API 不支援這個流程。
Since there is no way to link a Service Account to a YouTube account, attempts to authorize requests with this flow will generate an error.
[[["容易理解","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"]],["上次更新時間:2025-01-30 (世界標準時間)。"],[[["The YouTube Reporting API and YouTube Analytics API utilize OAuth 2.0 for authorizing access to private user data."],["OAuth 2.0 requires user consent, and the scope requested determines the resources the application can access, with a possible inverse relationship between the number of scopes and the likelihood of consent."],["Google's OAuth 2.0 supports various flows including server-side web apps, JavaScript web apps, and mobile/desktop apps, but it doesn't support the device flow for YouTube Reporting and Analytics APIs, or the service account flow."],["Before implementing OAuth 2.0, it's recommended to identify the necessary scopes, with specific scopes for the YouTube Analytics API and YouTube Reporting API being detailed, as well as a document containing a full list of possible scopes for Google APIs."],["If your application uses scopes that permit access to certain user data, you might need to complete a verification process, especially if you encounter an \"unverified app\" warning."]]],["OAuth 2.0 authorizes access to private YouTube user data. Applications initiate authorization, directing users to Google's server to specify access scopes. User consent grants a token, which can be exchanged for access and refresh tokens. Credentials must be obtained via the Google API Console. Supported flows include server-side, JavaScript, and mobile/desktop apps, but not limited-input devices or service accounts. Scopes, defined for YouTube Analytics and Reporting APIs, dictate resource access and influence user consent. Public apps accessing user data must undergo verification.\n"]]