Method: accounts.invitations.list
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בתיבת הדו-שיח הזו מפורטים הזמנות בהמתנה לחשבון שצוין.
בקשת HTTP
GET https://mybusiness.googleapis.com/v4/{parent=accounts/*}/invitations
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
שם החשבון שממנו מאוחזרת רשימת ההזמנות.
|
פרמטרים של שאילתה
פרמטרים |
targetType |
enum (TargetType )
ההגדרה קובעת אילו סוגי יעדים יופיעו בתשובה.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל נתונים במבנה הבא:
הודעת תגובה ל-AccessControl.List שמחs.
ייצוג JSON |
{
"invitations": [
{
object (Invitation )
}
]
} |
שדות |
invitations[] |
object (Invitation )
אוסף של הזמנות למיקום שממתינות לחשבון. מספר ההזמנות שמופיע כאן לא יכול לחרוג מ-1,000.
|
היקפי הרשאות
נדרש אחד מהיקפי ההרשאות הבאים של OAuth:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
למידע נוסף, קראו את המאמר סקירה כללית של OAuth 2.0.
TargetType
סוג הטירגוט שאליו שייכת הזמנה מסוימת.
טיפוסים בני מנייה (enum) |
ALL |
הצגת רשימה של הזמנות לכל סוגי היעדים. (זוהי ברירת המחדל) |
ACCOUNTS_ONLY |
הצגת רשימה של הזמנות רק ליעדים מסוג 'חשבון'. |
LOCATIONS_ONLY |
הצגת רשימה של הזמנות רק לטירגוטים מסוג 'מיקום'. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-22 (שעון 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-22 (שעון UTC)."],[[["This endpoint retrieves pending invitations for a specified Google My Business account."],["It allows filtering by target type (Account or Location) using the `targetType` query parameter."],["The response includes a list of invitations with details, limited to a maximum of 1000."],["Authorization is required using specific OAuth scopes related to business management."],["This endpoint is deprecated; consider using the Account Management API instead."]]],["This document outlines the process of listing pending invitations for a specified account using the deprecated API. It uses a `GET` request to `https://mybusiness.googleapis.com/v4/{parent=accounts/*}/invitations`. The `parent` path parameter specifies the account. The `targetType` query parameter filters invitation types. An empty request body is required. The response returns a JSON array of `invitations`, each represented as an object. The request needs either the `plus.business.manage` or `business.manage` authorization scope. Three types are available: ALL, ACCOUNTS_ONLY and LOCATIONS_ONLY.\n"]]