Method: giftcardclass.addmessage
یک پیام به کلاس کارت هدیه که توسط شناسه کلاس داده شده ارجاع داده شده است اضافه می کند.
درخواست HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}/addMessage
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
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 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-06 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-06 بهوقت ساعت هماهنگ جهانی."],[[["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"]]