Method: offerclass.get
הפונקציה מחזירה את סיווג המבצע עם מזהה המחלקה שצוין.
בקשת HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
resourceId |
string
המזהה הייחודי של הכיתה. המזהה הזה חייב להיות ייחודי בכל הכיתות של מנפיק. הערך צריך להיות בפורמט issuer ID.identifier כאשר הראשון הונפק על ידי Google והאחרון נבחר על ידך. המזהה הייחודי צריך לכלול רק תווים אלפאנומריים, נקודה (.), קו תחתון (_) או מקף (-).
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של OfferClass
.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/wallet_object.issuer
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-07 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-07 (שעון UTC)."],[[["Retrieves a specific offer class using its unique class ID."],["The class ID must be unique across all classes from the issuer and follow a specific format."],["An empty request body is required, and a successful response returns the OfferClass object."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["The core content describes retrieving an offer class using a `GET` request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}`. The `resourceId` path parameter, a unique string identifier, is required. The request body must be empty. A successful request returns an `OfferClass` instance in the response body. This operation requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]