Category Archives : New Features

  1. Home
  2. /
  3. Developer News
  4. /
  5. New Features

Asynchronous HTTP API – Beta Launch

Posted in : Developer News, New Features on by : Tim

SmartThings Developers – we’re excited to announce a beta version of APIs that allow developers to make HTTP requests to third party services asynchronously. These APIs work similarly to existing APIs like httpGet(), httpPut(), etc., but with one big difference – they are executed asynchronously. Here’s an example of making an asynchronous GET request: include ‘asynchttp_v1’ def initialize() { def params = [ uri: “”, path: “/search/code”, query: [q:‘httpGet+repo:SmartThingsCommunity/SmartThingsPublic’] ] // make request, passing the name of the method to call // with the response asynchttp_v1.get(“responseHandler”, params) } // response handler is called when the request completes // (in another…

Screen Shot 2016-08-05 at 1.26.45 PM

New Developer Feature – Hide Preference When Empty

Posted in : New Features on by : Tim

We are excited to announce the new hideWhenEmpty preferences configuration option. This feature will be useful to all developers wanting to provide a more succinct and friendly installation flow for your SmartApps. Prior to today if you wanted to hide an input field you would have needed to clutter up your code with if statements. This was hard to read and added another layer of complexity to your code. This is where hideWhenEmpty comes in. hideWhenEmpty will allow you to hide device inputs from the UI that could be empty. Making it easier for your users to understand how to…