Method: locations.questions.answers.list
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定した質問に対する回答を、ページ分けされたリストで返します。
HTTP リクエスト
GET https://mybusinessqanda.googleapis.com/v1/{parent=locations/*/questions/*}/answers
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
必須。回答を取得する質問の名前。
|
クエリ パラメータ
パラメータ |
pageSize |
integer
省略可。ページごとに取得する回答の数。pageSize のデフォルト値と最大値は 10 です。
|
pageToken |
string
省略可。指定すると、回答の次のページが取得されます。
|
orderBy |
string
省略可。回答を返す順序。有効なオプションには「updateTime desc」があります「upvoteCount desc」: リクエストされたフィールドの降順で並べ替えられた回答を返します。デフォルトの並べ替え順は「updateTime desc」です。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
QuestionsAndAnswers.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 の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-21 UTC。
[[["わかりやすい","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 UTC。"],[[["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"]]