Method: flightobject.addmessage
يضيف هذا الخيار رسالة إلى عنصر الرحلة الجوية المُشار إليه من خلال رقم تعريف العنصر المحدّد.
طلب HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/flightObject/{resourceId}/addMessage
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
resourceId |
string
تمثّل هذه السمة المعرّف الفريد للعنصر. ويجب أن يكون هذا المعرّف فريدًا في كل العناصر من جهة الإصدار. يجب أن تتبع هذه القيمة التنسيق issuer ID.identifier حيث يتم إصدار الطريقة السابقة من قِبل Google واختيار الطريقة الثانية من قِبلك. يجب أن يحتوي المعرّف الفريد على أحرف أبجدية رقمية فقط، مثل "." أو "_" أو "-".
|
نص الطلب
يحتوي نص الطلب على مثال AddMessageRequest
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، سيحتوي نص الاستجابة على بيانات بالبنية التالية:
الحقول |
resource |
object (FlightObject )
مورد FlightObject الذي تم تعديله
|
نطاقات الأذونات
يجب توفير نطاق 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 flight object using the object's unique identifier."],["Requires a POST request to the specified endpoint with the AddMessageRequest in the request body."],["Upon successful execution, the API responds with the updated FlightObject resource."],["The operation necessitates the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."],["Utilizes path parameters to identify the specific flight object to which the message will be added."]]],["This document details adding a message to a flight object using a `POST` request to a specified URL. The URL includes a `resourceId` path parameter, a unique identifier for the flight object. The request body contains an `AddMessageRequest` instance. A successful response returns an updated `FlightObject`, represented in JSON, with a \"resource\" field. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]