From 5639c54ef963f81c91c2a3b4ccd64b59dffd36ae Mon Sep 17 00:00:00 2001 From: Gus Class Date: Tue, 20 Feb 2018 21:27:14 -0800 Subject: [PATCH] Updates to v1 base URI (#569) --- iot/http_example/cloudiot_http_example.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iot/http_example/cloudiot_http_example.js b/iot/http_example/cloudiot_http_example.js index 27b9a4d635..83741dc948 100644 --- a/iot/http_example/cloudiot_http_example.js +++ b/iot/http_example/cloudiot_http_example.js @@ -73,7 +73,7 @@ var argv = require(`yargs`) type: 'number' }, httpBridgeAddress: { - default: 'cloudiot-device.googleapis.com', + default: 'cloudiotdevice.googleapis.com', description: 'HTTP bridge address.', requiresArg: true, type: 'string' @@ -105,7 +105,7 @@ const devicePath = `projects/${argv.projectId}/locations/${argv.cloudRegion}/reg // The request path, set accordingly depending on the message type. const pathSuffix = argv.messageType === 'events' ? ':publishEvent' : ':setState'; -const urlBase = `https://${argv.httpBridgeAddress}/v1beta1/${devicePath}`; +const urlBase = `https://${argv.httpBridgeAddress}/v1/${devicePath}`; const url = `${urlBase}${pathSuffix}`; // [END iot_http_variables]