I’m working with code written by a developer that integrates a SmartThings hub with a Crestron automation system processor. The code works for him, but not for me. It appears this is may be some sort of an authorization problem. I’ve taken the whole issue of code on the crestron processor out of the way and I’m just trying to get urls in my browser to work. Here is what happens
To start I use the following url to get an authorization code
where smartapp_client_id comes from the OAUTH properties of the SmartApp on the smartthings web site
I get the following back from SmartThings
http://My_IP_Address/?code=five_digit_code
All that looks good
Now when I try to get the access token I run into problems
I put the following url into my browser
where smartapp_client_id & smartapp_secret_id come from the OAUTH properties of the SmartApp on the smartthings web site
and five_digit_code comes from the response to the first https get
Now Instead of getting back an access token, I just get the following
Oh No! Something Went Wrong!
Error500: Internal Server Error
URI/oauth/token
Reference Idd9934de6-8e3a-4d07-bad9-efd1931c8539
DateMon Oct 24 19:38:19 UTC 2016
The groovy smart app is published - For Me. It is loaded onto my hub through the iPhone app. And I have added permission in the iPhone app for the SmartApp to work with the devices attached to my hub.
Any ideas on what I’m doing wrong would be greatly appreciated.
Thanks in advance for the help