From d19ec0b525e67bb29443aba36e7fb1394b71c690 Mon Sep 17 00:00:00 2001 From: Juan Pablo Risso Date: Thu, 5 Nov 2015 14:19:20 -0500 Subject: [PATCH] removed function ShardUrl() --- .../logitech-harmony-connect.groovy | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/smartapps/smartthings/logitech-harmony-connect.src/logitech-harmony-connect.groovy b/smartapps/smartthings/logitech-harmony-connect.src/logitech-harmony-connect.groovy index 2f25fa8..3d246b8 100644 --- a/smartapps/smartthings/logitech-harmony-connect.src/logitech-harmony-connect.groovy +++ b/smartapps/smartthings/logitech-harmony-connect.src/logitech-harmony-connect.groovy @@ -88,10 +88,9 @@ mappings { path("/oauth/initialize") { action: [ GET: "init"] } } -def getShardUrl() { return getApiServerUrl() } def getServerUrl() { return "https://graph.api.smartthings.com" } def getCallbackUrl() { "https://graph.api.smartthings.com/oauth/callback" } -def getBuildRedirectUrl() { "${serverUrl}/oauth/initialize?appId=${app.id}&access_token=${atomicState.accessToken}&apiServerUrl=${shardUrl}" } +def getBuildRedirectUrl() { "${serverUrl}/oauth/initialize?appId=${app.id}&access_token=${atomicState.accessToken}&apiServerUrl=${apiServerUrl}" } def authPage() { def description = null @@ -167,8 +166,8 @@ def callback() { def init() { log.debug "Requesting Code" - def oauthParams = [client_id: "${appSettings.clientId}", scope: "remote", response_type: "code", redirect_uri: "${callbackUrl}" ] - redirect(location: "https://home.myharmony.com/oauth2/authorize?${toQueryString(oauthParams)}") + def oauthParams = [client_id: "${appSettings.clientId}", scope: "remote", response_type: "code", redirect_uri: "${callbackUrl}" ] + redirect(location: "https://home.myharmony.com/oauth2/authorize?${toQueryString(oauthParams)}") } def receiveToken(redirectUrl = null) {