instead of the localhost where my code is running. It appends my uri DeviceInfo/smartThings/oauth. to smart things url https://graph.api.smartthings.com.
Not sure what I am doing wrong. Any help is appreciated.
You have to login first before you can authorize your devices.
This is a fairly typical OAuth flow. Once you have authorized your devices, you’ll get a temporary code (as shown in Issue 2) which you can trade in for an OAuth token. Once you have the token, you will use that as your authorization and bypass the login with each future request.
I guess you were trying with something like apache httpclient.
Were you able to pass through authentication using HttpClient…? access your device…?
Or did you use some Oauth2 libraries in Java to solve this…