Method: giftcardobject.get
מחזירה את האובייקט של כרטיס המתנה עם מזהה האובייקט הנתון.
בקשת HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
resourceId |
string
המזהה הייחודי של אובייקט. המזהה הזה חייב להיות ייחודי בכל האובייקטים של המנפיק. הערך הזה צריך להיות בפורמט issuer ID.identifier שבו הראשון הונפק על ידי Google והאחרון נבחר על ידך. המזהה הייחודי שלך יכול לכלול רק תווים אלפאנומריים, '.', '_' או '-'.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה מכיל מופע של GiftCardObject
.
היקפי הרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-03-13 (שעון UTC).
[null,null,["עדכון אחרון: 2025-03-13 (שעון UTC)."],[[["Retrieves a gift card object using its unique object ID."],["The request requires an empty body and uses the `GET` HTTP method."],["Successful responses will contain a `GiftCardObject` in the response body."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` scope."],["The object ID must follow a specific format and should be unique across all issuer objects."]]],["The core content describes retrieving a gift card object using a GET request. The request URL is `https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}`, where `{resourceId}` is a unique identifier composed of an issuer ID and a chosen identifier. The request body must be empty. A successful request returns a `GiftCardObject`. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The format of the identifier should include alphanumeric characters, '.', '_', or '-'.\n"]]