Hello, I am trying to create a platform. It is similar to what IFTTT does.
I am trying to get authorized as a 3rd party application by smartthings server. Then, I would like to control user’s Smartthings devices after being authorized.
I read the tutorial about the web service published by Smartthings. I run ruby based server. When I click the link, it directs user to login page. After I login, I get error:
Oh No! Something Went Wrong!
Error 500: Internal Server Error
I figured out that ruby server does not add ST_CLIENT_ID value to the message for the authorization. I set the environment variables in command prompt but it did not work. I use the client id from SmartApp which I created in my user account.
When I monitor the message traffic in IFTTT while connecting to Smartthings I saw that they used ifttt_production as the client id. My client id is composed of specific numbers, how can they use this name? Should not it be a string of numbers?
Another point is that I use a SmartApp’s client id created in my account. What if someone else tries to login? What if that person has no SmartApp’s client id? How will I fill the client_id field in this case? Any help is appreciated.