There is feature that when login via GoogleDrive , OneDrive etc.
They will provide one UI for username and password and after successful login it provides us auth token/ refresh token.
want provide my own service (eg. a web page) to allow users to control the devices installed in their SmartThings account.
But in SmartThings documentation i did not found any endpoint URL where i can hit and login and then my app/server get access token so that i can use it for calling SmartThings API.
I do not want to use PAT, I use only auth.
So please help me with this.
AlejandroPadilla
(Please contact @nayelyz or @Luis_Humberto_Medina )
2
Is it necessary to create SmartApp ?
My website cannot work as SmartApp?
Means if i do not want any middleware, how my website directly talk with ST Cloud using OAuth 2.0.
AlejandroPadilla
(Please contact @nayelyz or @Luis_Humberto_Medina )
5
@Devesh sorry for the delay I was out of the office
For the first question: yes is necessary to create OAuth-In SmartApp to utilize OAuth.
For the second question: the smartapp-sdk-nodejs is a library to libraries for building Webhook and Lambdas to interact with the SmartThings Public API, we recommend using it, but you also can send commands to the Public API with the correspondent token.