Method: offerclass.insert
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הוספת רמת מבצע עם המזהה והמאפיינים הנתונים.
בקשת HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/offerClass
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
גוף הבקשה
גוף הבקשה מכיל מופע של OfferClass
.
גוף התשובה
אם הפעולה בוצעה בהצלחה, גוף התגובה מכיל מופע חדש של OfferClass
שנוצר.
היקפי הרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["Inserts an offer class with a given ID and properties using an HTTP POST request."],["The request body and successful response body both contain an instance of `OfferClass`."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope."]]],["This document details how to insert an offer class using a POST request to `https://walletobjects.googleapis.com/walletobjects/v1/offerClass`. The request body must contain an `OfferClass` instance, and successful requests return a newly created `OfferClass` instance in the response body. This action requires the OAuth scope: `https://www.googleapis.com/auth/wallet_object.issuer`. The URL utilizes gRPC Transcoding syntax.\n"]]