httpGet in App

I am trying to do a GET in an app. I can use the uri in an RM rule GET and it works. But in my own app I keep getting 'No Signature Of Method'. Here is what I have.

uri = "https://IP/app/keypress?node_id=QNBQYe=0" (Not the actual one, but same format).

httpGet(uri,getResp)

I get the error on the httpGet line.

Wrong format for httpGet, could use:

params = [
                uri    : "https://$ipAddress",
                path   : "/app/keypress?node_id=QNBQYe=0",
                headers: [
                    "Connection-Timeout":600
                ]           
            ]
            httpGet(params) { resp ->
                <do something>
            }

or

params = [
                uri    : "https://$ipAddress",
                path   : "/app/keypress?node_id=QNBQYe=0",
                headers: [
                    "Connection-Timeout":600
                ]           
            ]
asynchttpGet("getResp", params)
}

def getResp (resp, data) {
    <do something>
}

OK, I had tried the first method before, it didn't work and still doesn't.

Did the second one and finally got it to working.

Kinda curious, in the documents it shows this: void httpGet(String uri, Closure closure).

Why would that not work?

EDIT: Well I spoke too soon. It still doesn't work. I don't get any errors now, but the get command doesn't work. I can do a get in RM with the same URI and it works fine. So there is something different in. RM it would seem.

OK, I finally got it. Here is what worked.

def getString = "https://IPAddress/app/keypress?node_id=QNBQYeQ101&type=1"
httpGet(getString) {resp ->
log.info "${resp}"
}