We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c98650 commit 0cc9b0fCopy full SHA for 0cc9b0f
dialogflow-cx/create-agent.js
@@ -21,7 +21,7 @@ async function main(projectId, displayName) {
21
22
const parent = 'projects/' + projectId + '/locations/global';
23
24
- const api_endpoint = 'global-dialogflow.googleapis.com:443';
+ const api_endpoint = 'global-dialogflow.googleapis.com';
25
26
const agent = {
27
displayName: displayName,
@@ -31,7 +31,7 @@ async function main(projectId, displayName) {
31
32
const {AgentsClient} = require('@google-cloud/dialogflow-cx');
33
34
- const client = new AgentsClient({api_endpoint: api_endpoint});
+ const client = new AgentsClient({apiEndpoint: api_endpoint});
35
36
async function setAgentSample() {
37
const request = {
0 commit comments