Method: offerclass.addmessage
يضيف رسالة إلى فئة العرض المشار إليها من خلال معرّف الفئة المعني.
طلب HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}/addMessage
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
resourceId |
string
تمثّل هذه السمة المعرّف الفريد لفئة معيّنة. ويجب أن يكون هذا المعرّف فريدًا في جميع الفئات من جهة الإصدار. يجب أن تتبع هذه القيمة التنسيق issuer ID.identifier حيث يتم إصدار الطريقة السابقة من قِبل Google واختيار الطريقة الثانية من قِبلك. يجب أن يحتوي المعرّف الفريد على أحرف أبجدية رقمية فقط، مثل "." أو "_" أو "-".
|
نص الطلب
يحتوي نص الطلب على مثال AddMessageRequest
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، سيحتوي نص الاستجابة على بيانات بالبنية التالية:
تمثيل JSON |
{
"resource": {
object (OfferClass )
}
} |
الحقول |
resource |
object (OfferClass )
مرجع OfferClass المعدَّل.
|
نطاقات الأذونات
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/wallet_object.issuer
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-03-13 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-03-13 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Adds a message to an existing offer class using a POST request to a specified endpoint."],["Requires a unique offer class ID in the request URL and an `AddMessageRequest` object in the request body."],["If successful, the response provides the updated `OfferClass` object, including the new message."],["This action needs authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["This document details adding a message to an offer class using a `POST` request to `https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}/addMessage`. The `resourceId` path parameter, a unique class identifier, is required. The request body must include an `AddMessageRequest`, while a successful response will contain the updated `OfferClass` resource. The action requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]