mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-04-27 06:06:19 +01:00
buildActionUrl("hookCallback")
This commit is contained in:
committed by
Yaima Valdivia
parent
61398105d1
commit
4e203e8e13
@@ -281,8 +281,7 @@ def validateCurrentToken() {
|
||||
|
||||
def initialize() {
|
||||
log.debug "Callback URL - Webhook"
|
||||
def localServerUrl = getApiServerUrl()
|
||||
def hookUrl = "${localServerUrl}/api/token/${state.accessToken}/smartapps/installations/${app.id}/hookCallback"
|
||||
def hookUrl = buildActionUrl("hookCallback")
|
||||
def webhook = "https://jawbone.com/nudge/api/v.1.1/users/@me/pubsub?webhook=$hookUrl"
|
||||
httpPost(uri: webhook, headers: ["Authorization": "Bearer ${state.JawboneAccessToken}" ])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user