wink

Issues with Pubnub + Wink Hub and sensors

爱⌒轻易说出口 提交于 2019-12-13 14:04:31
问题 I'm trying to get my Wink Hub working with Pubnub subscriptions in my iOS app, but all I ever get is a PNUnexpectedDisconnectCategory status in the didReceiveStatus callback. Here is the code: class AppDelegate: UIResponder, UIApplicationDelegate, PNObjectEventListener { var window: UIWindow? var client: PubNub override init() { let configuration = PNConfiguration(publishKey: "", subscribeKey: "fake-key") client = PubNub.clientWithConfiguration(configuration) super.init() client.addListener

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:/

Wink API v2 Hello World in PHP

泄露秘密 提交于 2019-12-10 12:25:06
问题 Wink API is currently on version 2. My Question: How can you do a simple "Hello World" with the Wink API V2 via PHP? Notes : Wink uses PubNub for subscriptions (devices have an event) Uses OAuth2 standard Website/Login is often "hokey": (& will error when you login: "Authentication failed!") Login here: https://developer.wink.com & use Google account (or whatever) Then change URL to this: https://developer.wink.com/clients Sometimes you have to do this a couple times!! You will need to