Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
Fix messaging API URL (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Parker authored Nov 29, 2016
1 parent 1d3be54 commit 55e17c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions watsoniot.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ preferences {

def getSettings() {
return [
version: "0.3.2"
version: "0.3.3"
]
}

Expand Down Expand Up @@ -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 = [
Expand Down

0 comments on commit 55e17c2

Please sign in to comment.