![smartthings sunset minus minutes smartthings sunset minus minutes](https://venturebeat.com/wp-content/uploads/2020/04/Screenshot84_photos_v2_x4.png)
Void httpPost(String uri, String body, Closure closure) The closure is passed one HttpResponseDecorator argument from which the response content and header information can be extracted. String uri - The URI to make the HTTP GET call toĬlosure - closure - The closure that will be called with the response of the request.Įxecutes an HTTP POST request and passes control to the specified closure. Void httpGet(Map params, Closure closure) Parameters: Void httpGet(String uri, Closure closure) If the response content type is JSON, the response data will automatically be parsed into a data structure. Returns: voidĮxecutes an HTTP DELETE request and passes control to the specified closure. Request body that will be encoded based on the given contentType.Ĭlosure closure - The closure that will be called with the response of the request.
![smartthings sunset minus minutes smartthings sunset minus minutes](https://i.pinimg.com/originals/a8/67/0a/a8670a00e6f607501e236b5da0afa54e.jpg)
Request path that is merged with the URI.įorced response content type and request Accept header.Ĭontent type for the request, if it is different from the expected response content-type. The valid parameters are: ParameterĮither a URI or URL of of the endpoint to make a request from. Map params - A map of parameters for configuring the request. String uri - The URI to make the HTTP DELETE call to. Void httpDelete(Map params, Closure closure) Parameters: Void httpDelete(String uri, Closure closure) Executes an HTTP DELETE request and passes control to the specified closure.