使用者:get
重要事項:我們將於 2024 年 9 月 30 日停止支援 2.0 JSON API。為確保能持續運作,請將採用 2.0 JSON API 版本的應用程式更新至最新版 API。如需最新版本,請使用左側導覽列中的連結。
需要授權
按使用者 ID 擷取單一使用者。
立即試用。
必須進行驗證。系統不允許擷取已驗證使用者以外的使用者。引數 userId 可以是數字使用者 ID 或本身。
要求
HTTP 要求
GET https://www.googleapis.com/blogger/v2/users/userId
參數
參數名稱 |
值 |
說明 |
必要參數 |
userId |
string |
要取得的使用者 ID。
|
授權
這項要求需要至少下列其中一個範圍的授權 (/blogger/docs/2.0/json/getting_started">進一步瞭解驗證和授權)。
內容範圍 |
https://www.googleapis.com/auth/blogger |
https://www.blogger.com/feeds/ |
要求主體
請勿使用這個方法提供要求主體。
回應
如果成功的話,這個方法會在回應主體中傳回使用者資源。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-06-26 (世界標準時間)。
[null,null,["上次更新時間:2024-06-26 (世界標準時間)。"],[[["The v2.0 JSON API will be discontinued on September 30th, 2024, and applications using it should be updated to the latest API version."],["This API retrieves a single user by their `userId` but requires authorization and only allows retrieving the authenticated user's information."],["The `userId` parameter can be either the numeric user identifier or \"self\"."],["Authorization requires specific scopes like `https://www.googleapis.com/auth/blogger` or `https://www.blogger.com/feeds/`."],["Successful requests return a Users resource in the response body."]]],[]]