Skip to content

Commit

Permalink
Updates to v1 base URI (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
gguuss authored Feb 21, 2018
1 parent b61580b commit 5639c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iot/http_example/cloudiot_http_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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]

Expand Down

0 comments on commit 5639c54

Please sign in to comment.