Skip to content

song940/konke

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

konke konke

konke sdk for node.js

Installation

$ npm install konke --save

Example

const konke = new KonKe({
  access_token : '3736a7ab79b27be49345523aab48941b'
});

konke.sendGeneralRemoteOrder(
  "song940@163.com", // user id
  "d5d7c8f3-43d7-44cc-a62d-261f882eb2a2", // device id
  KonKe.REMOTE_TYPE.IR, // remote type
  "rc_1498303352#1498303616" // remote command
).then(result => {
  console.log(result);
});

Contributing

  • Fork this Repo first
  • Clone your Repo
  • Install dependencies by $ npm install
  • Checkout a feature branch
  • Feel free to add your features
  • Make sure your features are fully tested
  • Publish your local branch, Open a pull request
  • Enjoy hacking <3

MIT

This work is licensed under the MIT license.