From 068979faadee17acf5f40845f10fdbf461393abb Mon Sep 17 00:00:00 2001 From: obycode Date: Wed, 18 Nov 2015 14:46:05 -0600 Subject: [PATCH] Modifying 'obything' --- .../obything-connect.src/obything-connect.groovy | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/smartapps/com-obycode/obything-connect.src/obything-connect.groovy b/smartapps/com-obycode/obything-connect.src/obything-connect.groovy index b8ecb50..806c44b 100644 --- a/smartapps/com-obycode/obything-connect.src/obything-connect.groovy +++ b/smartapps/com-obycode/obything-connect.src/obything-connect.groovy @@ -49,6 +49,14 @@ def updated() { unsubscribe() } +def uninstalled() { + logout() +} + +def logout() { + revokeAccessToken() +} + // mapping handlers // /setup POST