ser-node

1.0.4 • Public • Published

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

init ser-node

var SerNode = require("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

Readme

Keywords

none

Package Sidebar

Install

npm i ser-node

Weekly Downloads

0

Version

1.0.4

License

MIT

Last publish

Collaborators

  • clonn