Nocturnal Pumpkin Maelstrom

    dtk-nodejs-api-sdk

    1.1.4 • Public • Published

    大淘客开放平台NodeJs SDK

    项目安装

    npm i dtk-nodejs-api-sdk
    

    调用示例

    
    const dtkSdk = require('dtk-nodejs-api-sdk');
    /*
     *  @checkSign: 1 默认老版本验签  2 新版验签
     *  @appKey: 用户填写 appkey
     *  @appSecret: 用户填写 appSecret
     */ 
    const sdk = new dtkSdk({appKey:'',appSecret:'',checkSign:1});
    
    const getBrandList = sdk.request('接口地址',{
        method:"GET",
        /* 注意:form 里面就不用传appKey与appSecret  */
        form:{pageId:"1",pageSize:20,version:"v1.1.0"}
    }).then((res)=>{
        console.log(res,'接口调用成功')
    },(error,body)=>{
        console.log(error,'接口调用失败');
    })
    

    Install

    npm i dtk-nodejs-api-sdk

    DownloadsWeekly Downloads

    18

    Version

    1.1.4

    License

    none

    Unpacked Size

    5.99 kB

    Total Files

    3

    Last publish

    Collaborators

    • yemaozhi
    • xlszzck