تتضمّن واجهة برمجة التطبيقات
لأداء الأعمال في Google طريقة واجهة برمجة تطبيقات
جديدة تتيح جلب عدة "مقاييس يومية" في طلب واحد لواجهة برمجة التطبيقات.
يُرجى مراجعة
الجدول الزمني للإيقاف وتعليمات نقل البيانات من طريقة v4 reportInsights API إلى واجهة برمجة التطبيقات الخاصة بأداء "الملف التجاري على Google".
Method: locations.questions.answers.upsert
تنشئ إجابة أو تعدّل الإجابة الحالية التي كتبها المستخدم عن السؤال المحدّد. يمكن للمستخدم إنشاء إجابة واحدة فقط لكل سؤال.
طلب HTTP
POST https://mybusinessqanda.googleapis.com/v1/{parent=locations/*/questions/*}/answers:upsert
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
parent |
string
مطلوب. تمثّل هذه السمة اسم السؤال الذي تريد كتابة إجابة عنه.
|
نص الطلب
يحتوي نص الطلب على بيانات بالبنية التالية:
تمثيل JSON |
{
"answer": {
object (Answer )
}
} |
الحقول |
answer |
object (Answer )
مطلوب. الإجابة الجديدة.
|
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال Answer
.
نطاقات الأذونات
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/business.manage
لمزيد من المعلومات، يُرجى الاطِّلاع على نظرة عامة على OAuth 2.0.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)"],[[["This documentation outlines the process for creating or updating an answer to a question using the My Business Q&A API."],["The request requires a `POST` method to a specific endpoint with parameters specifying the question and the new answer content."],["The request body must contain a JSON object with the answer details, adhering to a defined structure."],["Successful execution results in a response containing the created or updated answer object."],["Authorization using the `business.manage` scope is required to utilize this API functionality."]]],["This describes how to create or update an answer to a user question via an API. A `POST` HTTP request is sent to a specific URL containing the question's location (`parent`). The request body, formatted as JSON, contains the new `answer`. The `parent` path parameter is required, specifying the question's name. Authorization requires the `business.manage` OAuth scope. Upon success, the response body returns the created or updated `Answer`.\n"]]