Google Business Performance API 的
NEW API 方法可擷取單一 API 要求中的多個「DailyMetrics」。
請詳閱
淘汰時間表和從 v4 reportInsights API 方法遷移至 Google Business Profile Performance API 的操作說明。
Method: locations.questions.answers.list
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HTTP 要求
GET https://mybusinessqanda.googleapis.com/v1/{parent=locations/*/questions/*}/answers
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。要擷取答案的問題名稱。
|
查詢參數
參數 |
pageSize |
integer
選用設定。每頁要擷取的答案數。pageSize 的預設值與最大值為 10。
|
pageToken |
string
選用設定。如有指定,系統會擷取下一頁的答案。
|
orderBy |
string
選用設定。傳回答案的順序。有效選項包括「updateTime desc」和「upvoteCount desc」,即可傳回依要求欄位遞減排序的答案。預設排序順序為「updateTime desc」。
|
回應主體
FAQAndAnswers.ListAnswers 的回應訊息
如果成功,回應主體會含有以下結構的資料:
JSON 表示法 |
{
"answers": [
{
object (Answer )
}
],
"totalSize": integer,
"nextPageToken": string
} |
欄位 |
answers[] |
object (Answer )
要求的答案。
|
totalSize |
integer
在所有網頁上張貼的這個問題答案總數。
|
nextPageToken |
string
如果答案數量超過要求的頁面大小上限,這個欄位就會填入符記,以便在後續呼叫中擷取下一個頁面的答案。如果沒有更多答案,系統就不會在回覆中顯示這個欄位。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/business.manage
詳情請參閱 OAuth 2.0 總覽。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-21 (世界標準時間)。
[[["容易理解","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-08-21 (世界標準時間)。"],[[["Retrieves a paginated list of answers for a specific question using the `GET` method and the provided URL structure."],["Allows for customization of results through query parameters like `pageSize`, `pageToken`, and `orderBy` to control pagination and sorting."],["The response body includes an array of answers, the total number of answers, and a token for retrieving subsequent pages if available."],["Requires the `https://www.googleapis.com/auth/business.manage` OAuth scope for authorization."]]],["This content describes retrieving a list of answers for a specific question using a `GET` request to a defined URL. The `parent` path parameter specifies the question's location. Optional query parameters include `pageSize` (default and max 10), `pageToken` for pagination, and `orderBy` for sorting. The request body should be empty. The response includes an array of `answers`, `totalSize` indicating the total answers, and `nextPageToken` for further pages. Authorization requires the `business.manage` scope.\n"]]