Skip to content

Commit 0cc9b0f

Browse files
galz10Ace Nassri
authored and
Ace Nassri
committed
samples: fixed using wrong variable naming (#182)
1 parent 2c98650 commit 0cc9b0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dialogflow-cx/create-agent.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async function main(projectId, displayName) {
2121

2222
const parent = 'projects/' + projectId + '/locations/global';
2323

24-
const api_endpoint = 'global-dialogflow.googleapis.com:443';
24+
const api_endpoint = 'global-dialogflow.googleapis.com';
2525

2626
const agent = {
2727
displayName: displayName,
@@ -31,7 +31,7 @@ async function main(projectId, displayName) {
3131

3232
const {AgentsClient} = require('@google-cloud/dialogflow-cx');
3333

34-
const client = new AgentsClient({api_endpoint: api_endpoint});
34+
const client = new AgentsClient({apiEndpoint: api_endpoint});
3535

3636
async function setAgentSample() {
3737
const request = {

0 commit comments

Comments
 (0)