Method: giftcardclass.addmessage
تُضيف رسالة إلى فئة بطاقة الهدايا التي يشير إليها معرّف الفئة المحدّد.
طلب HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}/addMessage
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
resourceId |
string
المعرّف الفريد لأحد الصفوف ويجب أن يكون هذا المعرّف فريدًا في جميع الفئات من جهة الإصدار. يجب أن تتبع هذه القيمة التنسيق issuer ID.identifier حيث يتم إصدار الطريقة السابقة من قِبل Google واختيار الطريقة الثانية من قِبلك. يجب أن يتضمّن المعرّف الفريد أحرفًا أبجدية رقمية فقط أو النقطة أو الشرطة السفلية أو الشرطة المائلة.
|
نص الطلب
يحتوي نص الطلب على مثال AddMessageRequest
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، سيحتوي نص الاستجابة على بيانات بالبنية التالية:
الحقول |
resource |
object (GiftCardClass )
مرجع GiftCardClass المعدّل.
|
نطاقات التفويض
يجب توفير نطاق 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 (حسب التوقيت العالمي المتفَّق عليه)"],[[["This document details the process for adding a message to a specific gift card class using the Google Wallet API."],["The request is sent as a POST request to the specified URL with the gift card class ID as a path parameter."],["The request body should contain an `AddMessageRequest` object as defined in the API reference."],["Upon successful execution, the API returns the updated `GiftCardClass` object in the response body."],["This operation requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["This describes adding a message to a gift card class using a `POST` request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}/addMessage`. The `resourceId`, a unique class identifier, is a path parameter. The request body uses the `AddMessageRequest` format. A successful response returns a JSON object containing the updated `GiftCardClass` resource. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]