@@ -63,7 +63,7 @@ async function main() {
63
63
});
64
64
const client = await auth .getClient ();
65
65
const projectId = await auth .getProjectId ();
66
- const url = ` https://www .googleapis.com/dns/v1/projects/${ projectId} ` ;
66
+ const url = ` https://dns .googleapis.com/dns/v1/projects/${ projectId} ` ;
67
67
const res = await client .request ({ url });
68
68
console .log (res .data );
69
69
}
@@ -183,7 +183,7 @@ client.on('tokens', (tokens) => {
183
183
console .log (tokens .access_token );
184
184
});
185
185
186
- const url = ` https://www .googleapis.com/dns/v1/projects/${ projectId} ` ;
186
+ const url = ` https://dns .googleapis.com/dns/v1/projects/${ projectId} ` ;
187
187
const res = await client .request ({ url });
188
188
// The `tokens` event would now be raised if this was the first request
189
189
```
@@ -256,7 +256,7 @@ async function main() {
256
256
keys .private_key ,
257
257
[' https://www.googleapis.com/auth/cloud-platform' ],
258
258
);
259
- const url = ` https://www .googleapis.com/dns/v1/projects/${ keys .project_id } ` ;
259
+ const url = ` https://dns .googleapis.com/dns/v1/projects/${ keys .project_id } ` ;
260
260
const res = await client .request ({url});
261
261
console .log (res .data );
262
262
}
@@ -301,7 +301,7 @@ async function main() {
301
301
// load the JWT or UserRefreshClient from the keys
302
302
const client = auth .fromJSON (keys);
303
303
client .scopes = [' https://www.googleapis.com/auth/cloud-platform' ];
304
- const url = ` https://www .googleapis.com/dns/v1/projects/${ keys .project_id } ` ;
304
+ const url = ` https://dns .googleapis.com/dns/v1/projects/${ keys .project_id } ` ;
305
305
const res = await client .request ({url});
306
306
console .log (res .data );
307
307
}
@@ -326,7 +326,7 @@ async function main() {
326
326
serviceAccountEmail
: ' [email protected] '
327
327
});
328
328
const projectId = await auth .getProjectId ();
329
- const url = ` https://www .googleapis.com/dns/v1/projects/${ project_id} ` ;
329
+ const url = ` https://dns .googleapis.com/dns/v1/projects/${ project_id} ` ;
330
330
const res = await client .request ({url});
331
331
console .log (res .data );
332
332
}
0 commit comments