Skip to content

clonn/ser-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ser-node

Build Status

Ser-node is a node SDK of idear iii api, you can referece official document and usage link.

We support full stack function for Node.js developer and JavaScript developer can use, it is a project of Ideas Tech 2015.

install

npm install ser-node

usage

import / require Ser-Node module

var SerNode = require("ser-node");

init ser-node

var serNode = new SerNode({
  id: "SER_ID",
  secret_key: "SECRET_KEY"
});

then have to get token

serNode.connect();

start use API running

  serNode.connect(function () {
    serNode.request("top_article/ptt", {
      period: 10
    })
    .then(function (result) {

      // get result data
    });
  });

or

serNode.connect().then(function () {

  serNode.request("top_article/ptt", {
    period: 10
  })
  .then(function (result) {

    // get result data
  });

})

npm

Auth

license

MIT