You can probably find more examples by searching the forum, but here some async examples (which I'd suggest using unless you truly need the other version):
Asynchronous calls are now available in the Hubitat Elevation system.
The following methods are available:
void asynchttpGet(String callbackMethod, Map params, Map data = null)
void asynchttpPost(String callbackMethod, Map params, Map data = null)
void asynchttpPut(String callbackMethod, Map params, Map data = null)
void asynchttpDelete(String callbackMethod, Map params, Map data = null)
void asynchttpPatch(String callbackMethod, Map params, Map data = null)
void asynchttpHead(String callbackMā¦