Method: offerobject.get
הפונקציה מחזירה את אובייקט המבצע עם מזהה האובייקט שצוין.
בקשת HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
resourceId |
string
המזהה הייחודי של אובייקט. המזהה הזה חייב להיות ייחודי בכל האובייקטים של המנפיק. הערך צריך להיות בפורמט issuer ID.identifier, כאשר המזהה הראשון מונפק על ידי Google והשני נבחר על ידכם. המזהה הייחודי צריך לכלול רק תווים אלפאנומריים, נקודה (.), קו תחתון (_) או מקף (-).
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של OfferObject
.
היקפי ההרשאות
נדרש היקף הרשאות 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 object using its unique identifier."],["The request requires an empty body and uses the `GET` method with a specific URL structure."],["Successful responses provide the offer object details in the response body."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` scope."],["The object ID must follow a specific format including issuer and identifier components."]]],["The core content describes retrieving an offer object using a `GET` request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}`. The `resourceId` is a unique string identifier following the format `issuer ID.identifier`. The request body must be empty, and the successful response will contain an `OfferObject` instance. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The content also specifies the use of gRPC transcoding syntax in the URL.\n"]]