Im not sure how I can usemy service account and Dialogflow API key to get an API token using OAuth2 to get an access token for google. Could someone share a code snippet
I want to access this API: https://cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.agent.entityTypes/list
In order to use the Dialogflow API (in this case, list all the entity types in the specified agent) you have to:
GOOGLE_APPLICATION_CREDENTIALS="/path/to/key.json"
.You can access the API via REST , gRPC or a client library . In this repository, there are some samples with the python client library.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.