I have now working many hours to get something to work with Telldus Live and c# and after many hours i find OAuth2 libryar that i now trying to impelment Telldus Live in to.
I have forked the code and added a TelldusLiveClient code to it, se https://github.com/RickardPettersson/OAuth2
I got so long that i got to login and then accept the application access but then i get this exception:
"OAuth Verification Failed: Verification of signature failed (signature base string was \"POST&http%3A%2F%2Fapi.telldus.com%2Foauth%2FaccessToken&oauth_consumer_key%XXXXXXXXX%26oauth_nonce%XXXXXXXXX%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1419060557%26oauth_token%XXXXXXXXX%26oauth_verifier%XXXXXXXXX%26oauth_version%3D1.0\"). with Array\n(\n [0] => XXXXXXXXX\n [1] => XXXXXXXXX\n [2] => request\n)\n"
I have replaced some stuff with XXXXXXXXX thats why the urls is not like it should.
Do anyone know what the problem can be or someone can help me test it and try to fix it?
Trying to get OAuth2 with c# ASP.NET MVC to work
Moderator: Telldus
Re: Trying to get OAuth2 with c# ASP.NET MVC to work
I got the login to work now the work with listing devices etc starting, follow the work on github the link in the post.
Re: Trying to get OAuth2 with c# ASP.NET MVC to work
I skipped the OAuth2 project and started a ASP.NET MVC 5 project with Restsharp and Newtonsoft JSON that i have put on Github for everyone to use or se examples, i going to work more with it forward but i know people searching for this kind of solutions: https://github.com/RickardPettersson/TelldusLive-MVC