L'API
Google Business Performance ha un metodo
NOVITÀ che consente di recuperare più `dailyMetrics` in un'unica richiesta API.
Consulta il
calendario del ritiro e le istruzioni per eseguire la migrazione dal metodo API ReportInsights della versione 4 all'API Performance di Google Profilo.
Method: locations.questions.answers.upsert
Crea una risposta o aggiorna la risposta esistente scritta dall'utente per la domanda specificata. Un utente può creare una sola risposta per domanda.
Richiesta HTTP
POST https://mybusinessqanda.googleapis.com/v1/{parent=locations/*/questions/*}/answers:upsert
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
parent |
string
Obbligatorio. Il nome della domanda per cui scrivere una risposta.
|
Corpo della richiesta
Il corpo della richiesta contiene dati con la seguente struttura:
Rappresentazione JSON |
{
"answer": {
object (Answer )
}
} |
Campi |
answer |
object (Answer )
Obbligatorio. La nuova risposta.
|
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di Answer
.
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/business.manage
Per ulteriori informazioni, consulta la panoramica di OAuth 2.0.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-08-21 UTC.
[null,null,["Ultimo aggiornamento 2024-08-21 UTC."],[[["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"]]