From 55e17c2bb2b1fbc889d0dda31b27aa3aea54cea8 Mon Sep 17 00:00:00 2001 From: David Parker Date: Tue, 29 Nov 2016 15:24:30 +0000 Subject: [PATCH] Fix messaging API URL (again) --- watsoniot.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watsoniot.groovy b/watsoniot.groovy index 9fe6177..26c43b4 100644 --- a/watsoniot.groovy +++ b/watsoniot.groovy @@ -46,7 +46,7 @@ preferences { def getSettings() { return [ - version: "0.3.2" + version: "0.3.3" ] } @@ -427,7 +427,7 @@ def updateDevice(device) { * See: https://docs.internetofthings.ibmcloud.com/swagger/v0002.html#!/Connectivity/post_application_types_deviceType_devices_deviceId_events_eventName */ def publishEvent(evt) { - def uri = "https://${watson_iot_org}.internetofthings.ibmcloud.com/api/v0002/application/types/smartthings/devices/${evt.deviceId}/events/${evt.eventId}" + def uri = "https://${watson_iot_org}.messaging.internetofthings.ibmcloud.com/api/v0002/application/types/smartthings/devices/${evt.deviceId}/events/${evt.eventId}" def headers = ["Authorization": getAuthHeader()] def params = [