From 5ca65efa4216f94e51bd125674423dd9a4915b88 Mon Sep 17 00:00:00 2001 From: techwithjake Date: Fri, 22 Jul 2016 14:08:02 -0700 Subject: [PATCH] Change Settings to "Make Web Request" Add "TEXT" to "Content Type" Make "Variables to send" optional --- smartapps/ady624/core.src/core.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smartapps/ady624/core.src/core.groovy b/smartapps/ady624/core.src/core.groovy index dbdb623..ce41595 100644 --- a/smartapps/ady624/core.src/core.groovy +++ b/smartapps/ady624/core.src/core.groovy @@ -9671,7 +9671,7 @@ private virtualCommands() { [ name: "repeatAction", display: "Repeat whole action", parameters: ["Interval:number[1..1440]","Unit:enum[seconds,minutes,hours]"], immediate: true, location: true, description: "Repeat whole action every {0} {1}", aggregated: true], [ name: "followUp", display: "Follow up with piston", parameters: ["Delay:number[1..1440]","Unit:enum[seconds,minutes,hours]","Piston:piston","?Save state into variable:string"], immediate: true, varEntry: 3, location: true, description: "Follow up with piston '{2}' after {0} {1}", aggregated: true], [ name: "executePiston", display: "Execute piston", parameters: ["Piston:piston","?Save state into variable:string"], varEntry: 1, location: true, description: "Execute piston '{0}'", aggregated: true], - [ name: "httpRequest", display: "Make a web request", parameters: ["URL:string","Method:enum[GET,POST,PUT,DELETE,HEAD]","Content Type:enum[JSON,FORM]","Variables to send:variables","Import response data into variables:bool","?Variable import name prefix (optional):string"], location: true, description: "Make a {1} web request to {0}", aggregated: true], + [ name: "httpRequest", display: "Make a web request", parameters: ["URL:string","Method:enum[GET,POST,PUT,DELETE,HEAD]","Content Type:enum[JSON,FORM,TEXT]","?Variables to send:variables","?Import response data into variables:bool","?Variable import name prefix (optional):string"], location: true, description: "Make a {1} web request to {0}", aggregated: true], //flow control commands [ name: "beginSimpleForLoop", display: "Begin FOR loop (simple)", parameters: ["Number of cycles:string"], location: true, description: "FOR {0} CYCLES DO", flow: true, indent: 1, ], [ name: "beginForLoop", display: "Begin FOR loop", parameters: ["Variable to use:string","From value:string","To value:string"], varEntry: 0, location: true, description: "FOR {0} = {1} TO {2} DO", flow: true, indent: 1, ], @@ -10104,4 +10104,4 @@ private getColorByName(name, ownerId = null, taskId = null) { /*** Write code here and then move it to its proper location ***/ /******************************************************************************/ -private dev() {} \ No newline at end of file +private dev() {}