Method: locations.questions.answers.list
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפונקציה מחזירה את רשימת התשובות בחלוקה לדפים לשאלה שצוינה.
בקשת HTTP
GET https://mybusinessqanda.googleapis.com/v1/{parent=locations/*/questions/*}/answers
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. שם השאלה שעבורה רוצים לאחזר את התשובות.
|
פרמטרים של שאילתה
פרמטרים |
pageSize |
integer
זה שינוי אופציונלי. כמה תשובות לאחזר בכל דף. ערכי ברירת המחדל והמקסימום של pageSize הם 10.
|
pageToken |
string
זה שינוי אופציונלי. אם צוין, דף התשובות הבא יאוחזר.
|
orderBy |
string
זה שינוי אופציונלי. הסדר להחזרת התשובות. האפשרויות החוקיות כוללות 'updateTime desc' ו-'upvoteCount desc', כדי להחזיר את התשובות ממוינות בסדר יורד לפי השדה המבוקש. סדר המיון שמוגדר כברירת מחדל הוא 'updateTime desc'
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
הודעת תגובה ל-QuestionAndAnswers.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.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון 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"]],["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\u003cp\u003eRetrieves a paginated list of answers for a specific question using the \u003ccode\u003eGET\u003c/code\u003e method and the provided URL structure.\u003c/p\u003e\n"],["\u003cp\u003eAllows for customization of results through query parameters like \u003ccode\u003epageSize\u003c/code\u003e, \u003ccode\u003epageToken\u003c/code\u003e, and \u003ccode\u003eorderBy\u003c/code\u003e to control pagination and sorting.\u003c/p\u003e\n"],["\u003cp\u003eThe response body includes an array of answers, the total number of answers, and a token for retrieving subsequent pages if available.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],["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"],null,[]]