How to use Wink API V2 from a non-web app

半城伤御伤魂 提交于 2019-12-12 21:27:21

问题


I have a command-line PHP application running on a 5min cron retrieving data from an internal web-service and calling a nimbus(former cloud-clock) device via the Wink API. - This was running great for the last few years. When authenticating with password grant and my V1 API Keys authentication fails with the message

This client is not permitted to use the password grant type

It seems that Wink has abandoned the old authentication and asks users to register for new API keys at https://developer.wink.com - The process asks for a redirect URL which makes only sense for web-apps.

Finally my question: How can I authenticate with the new Wink API from a command-line script if I do not have a redirect URI?

来源:https://stackoverflow.com/questions/47339760/how-to-use-wink-api-v2-from-a-non-web-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!