SmartThings now has an offial API https://smartthings.developer.samsung.com/docs/api-ref/st-api.html#section/Overview