NodeJs SDK使用说明

项目主页: https://github.com/shopex/teegon-open-nodejs-sdk/

基本设置


npm install

发起API请求


teegon = require("../lib/teegon")

client = teegon("http://apigateway.shopex.cn/router", "xjMeB4h", "FkJtb5weE4dSNYX8waj4");

client.rpc("shopex.query.appqueue", {
    async: false,
    type: "GET",
    params: {"user_eid":"1233","app_id":"232er"},
    success: function(result){
        console.info("test-success:");
        console.info(result)
    },
    error: function(err){
        console.info("test-error:");
        console.info(err)
    },
    timeout: 3
});