Method: loyaltyobject.get
הפונקציה מחזירה את אובייקט הנאמנות עם מזהה האובייקט הנתון.
בקשת HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{resourceId}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
resourceId |
string
המזהה הייחודי של אובייקט. המזהה הזה חייב להיות ייחודי בכל האובייקטים של מנפיק. הערך צריך להיות בפורמט issuer ID.identifier כאשר הראשון הונפק על ידי Google והאחרון נבחר על ידך. המזהה הייחודי צריך לכלול רק תווים אלפאנומריים, נקודה (.), קו תחתון (_) או מקף (-).
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של LoyaltyObject
.
היקפי הרשאה
נדרש היקף הרשאות 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 loyalty object using its unique identifier."],["The request requires an empty body and uses the `GET` HTTP method."],["The response provides detailed information about the loyalty object, including its properties and data."],["Authorization is necessary using the `wallet_object.issuer` scope to access and retrieve the object."]]],["The core content describes retrieving a loyalty object using a `GET` request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{resourceId}`. The `{resourceId}` path parameter, a unique string identifier, is required. The request body must be empty. A successful request returns a `LoyaltyObject` instance within the response body, and needs authorization through the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]