rcoodey / Pilarm

Integrate existing door or window contact sensors with SmartThings using a Raspberry Pi or C.H.I.P.
Apache License 2.0
7 stars 5 forks source link

Auth #8

Open kencol78 opened 6 years ago

kencol78 commented 6 years ago

Hi there, Many thanks for writing and sharing this.

In the readme, I'm trying to follow point 12, but it seems to fail...I must not be getting the exact format of the url I should be entering.

Can you see what I'm doing wrong here?

https://graph-eu01-euwest1.api.smartthings.com/oauth/token?grant_type=authorization_code&client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx&client_secret=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&redirect_uri=http://localhost/&code=xxxxxx&scope=app

Many thanks.

lukeframpton4124 commented 6 years ago

You have to make sure you're using the correct shard. Follow this link : https://community.smartthings.com/t/faq-how-to-find-out-what-shard-cloud-slice-ide-url-your-account-location-is-on/53923 and retry!

On Sat, Aug 18, 2018, 18:33 kencol78, notifications@github.com wrote:

Hi there, Many thanks for writing and sharing this.

In the readme, I'm trying to follow point 12, but it seems to fail...I must not be getting the exact format of the url I should be entering.

Can you see what I'm doing wrong here?

https://graph-eu01-euwest1.api.smartthings.com/oauth/token?grant_type=authorization_code&client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx&client_secret=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&redirect_uri=http://localhost/&code=xxxxxx&scope=app

Many thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rcoodey/Pilarm/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AXIeh238M2Lqm8c1Oo0KHu9MQBuKHixBks5uSIE7gaJpZM4WCuUf .