![]() ![]() You can always restore tokens using the application UPDATE on a mobile device as I mentioned above. I am under the impression that, unlike the Alexa API, the old refreshToken expires immediately after refresh, and you won’t be able to retry the call with the old values if you lose your updated authToken and refreshToken for some reason. I am not familiar with curl, but this example was good enough to understand how to refresh tokens. Here is the code I used for testing: exports.handler = function (request, context, callback) " ) Ĭurl_setopt( $ch, CURLOPT_RETURNTRANSFER, true) I use AWS because AWS can easily host WebHook and Lambda functions. Hosting SmartAppīefore registering a SmartApp at Developer Workspace, you need to create it. Here I found many thoughtful and helpful people who helped me solve my problems. is a first-of-its-kind unifying fusion platform, built from the ground up, to turn your Jobsite into a Smartsite. This is your fault and the only way to resolve it is to look through the logs and ask this community for help. Do not contact SmartThings support (you will confuse them and they will not be able to help you) and do not try again later. Something like this: “An unexpected error occurred… email us at … Reference ID …” or “Network error… Please try again later”. You are likely to receive error messages during development. I hope this will save you time to develop your first SmartApp. I just want to share my experience and the information I have gathered from various sources. When I started from scratch, I made a lot of mistakes, because many things that seem obvious to me now were not obvious to me at the beginning. I have very little knowledge about the Unix platform, NodeJS, AWS and SmartThings Edge. I’m building my first SmartApp to migrate to the SmartThings Edge platform an app developed using legacy Groovy technology. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |