Closed the-sambot closed 7 years ago
I've been playing with this as of late and just went through the same process yesterday.
I'd say make sure you stay in the same tab if you can. Copy all the URLs to the notepad or something and plug in the pieces as you get them.
I've seen the IDE act up at times for no reason and you have to get a new code otherwise you can't move to the next section.
This was my biggest issue but it worked as instructed. I wish there was an easier way but I don't think there is right now. Also, make sure you grab the right appid from the JSON list. I had all kinds of issues because I was looking at the wrong label. SMH 😀
Thanks for the update. It wasn't until i looked at the readme on my pi did I notice that the code also had to be put in. Also, just figured out the installations. I had to append it to my shard address: https://graph-na02-useast1.api.smartthings.com/api/smartapps/installations. Now I got it.
When I use the link https://graph.api.smartthings.com/oauth/token?grant_type=authorization_code&client_id=&client_secret=&redirect_uri=http://localhost&code=&scope=app" and add clientid after client_id= and add clientsecret after client_secret=, I get the following error
Oh No! Something Went Wrong! Error:500: Internal Server Error URI:/oauth/token ReferenceId:c37b4eea-15e0-40c7-8816-1122d90c17e7Date:Fri Feb 17 19:50:37 UTC 2017
Previous linked (/authorize) worked just fine. Tried in Firefox and IE.
Also, the next step, going to https://graph.api.smartthings.com/api/smartapps/installations, I get:
Thanks!
--UPDATE Figured out the first part. You need to include the code as well after localhost&code=. I was able to get the response, but I'm still not able to get the ID from the ".../smartapps/installations" link.