Method: genericclass.addmessage
تُضيف رسالة إلى الفئة العامة التي يشير إليها معرّف الفئة المحدّد.
طلب HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}/addMessage
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
resourceId |
string
المعرّف الفريد لأحد الصفوف ويجب أن يكون هذا المعرّف فريدًا في جميع الفئات من جهة الإصدار. يجب أن تكون هذه القيمة بالتنسيق issuer ID.identifier حيث تُصدر Google المعرّف الأول ويمكنك اختيار المعرّف الثاني. يجب أن يحتوي المعرّف الفريد على أحرف أبجدية رقمية أو "." أو "_" أو "-".
|
نص الطلب
يحتوي نص الطلب على مثال AddMessageRequest
.
نص الاستجابة
ردّ بشأن إضافة رسالة جهة إصدار جديدة إلى الصف يحتوي هذا على GenericClass المُحدّثة بالكامل.
إذا كانت الاستجابة ناجحة، سيحتوي نص الاستجابة على بيانات بالبنية التالية:
الحقول |
resource |
object (GenericClass )
المرجع الذي تم تعديله في EventTicketClass
|
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/wallet_object.issuer
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-11-07 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-07 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Adds a new message to an existing generic class identified by a unique class ID."],["The request requires providing an `AddMessageRequest` in the body and uses the `POST` method."],["The response provides the updated `GenericClass` object, including the new message."],["Utilizes the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope."],["The class ID follows a specific format, \u003cvar translate=\"no\"\u003eissuer ID\u003c/var\u003e.\u003cvar translate=\"no\"\u003eidentifier\u003c/var\u003e, with constraints on the characters allowed in the identifier."]]],["This document outlines the process for adding a message to a generic class using a `POST` HTTP request to a specific URL. The request requires a unique `resourceId` in the path, formatted as `issuer ID.identifier`. The request body must include an `AddMessageRequest` instance. Successful requests return an updated `GenericClass` in JSON format, contained within a `resource` field. The process necessitates authorization via the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]