Method: genericclass.insert
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
لإدراج فئة عامة تضمّ المعرّف والخصائص المقدَّمة.
طلب HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/genericClass
يستخدم عنوان URL بنية تحويل الترميز gRPC.
نص الطلب
يحتوي نص الطلب على مثال GenericClass
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثيل GenericClass
تم إنشاؤه حديثًا.
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/wallet_object.issuer
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Inserts a generic class with a given ID and properties using an HTTP POST request."],["The request body and successful response body both contain an instance of `GenericClass`."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["A `POST` request is made to `https://walletobjects.googleapis.com/walletobjects/v1/genericClass` to insert a generic class. The request body should include a `GenericClass` instance. A successful operation returns a newly created `GenericClass` instance in the response body. This action requires the OAuth scope: `https://www.googleapis.com/auth/wallet_object.issuer` for authorization. The URL uses gRPC Transcoding syntax.\n"]]