
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
The Wink API connects Wink devices to users, apps, each other, and the wider web. Targets the v2 API
A typescript/javascript binding for Wink's v2 API.
npm install wink-api
for typescript users, this can install the module's typings globally:
typings install file:node_modules/wink-api/@types/wink-api.d.ts --save --global
Add an app at https://developer.wink.com and wait under a day for acceptance.
You'll need to get the client ID and secret.
Your app should get the access token via OAuth. More details are at http://docs.winkapiv2.apiary.io/#reference/oauth
Get the devices for a user:
import {GetDevices} from "wink-api";
GetDevices.execute({
host: 'https://api.wink.com',
access_token: access_token
}).then((devicesResponse: WinkAPI.IUserDevicesResponse) => {
// do something
}).catch((err: WinkAPI.IRequestError) => {
// error handling
});
The following requests are supported via the wink-api module (each with "execute" as the method that queries):
Turning off a group of lights:
import {UpdateGroupState} from "wink-api";
UpdateGroupState.execute({
host: 'https://api.wink.com',
access_token: '<access_token>',
group_id: '<group id>'
}, {
powered: false
}).then((groupResponse: WinkAPI.IUserGroupResponse) => {
// do something
}).catch((err: WinkAPI.IRequestError) => {
// error handling
});
FAQs
The Wink API connects Wink devices to users, apps, each other, and the wider web. Targets the v2 API
We found that wink-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.