dtk-api-nodejs-sdk
v1.0.0
Published
大淘客开发平台node调用方式
Downloads
49
Readme
源码如何打包上传到 npm 供其他项目使用?
1、修改本机 npm 源为官方源
mac 下用户名文件夹下修改 .zshrc 文件
export NPM_CONFIG_REGISTRY=https://registry.npmjs.org/
2、登陆 npm
npm login
3、发布到 npm 官网
npm publish
本机测试源码
yarn install yarn build
openapi-sdk-nodejs
介绍
大淘客开放平台 SDK NODEJS 版
软件架构
软件架构说明
安装教程
npm i dataoke-nodejs-api-sdk
使用说明
const dtkSdk = require('dataoke-nodejs-api-sdk'); /*
- 初始化 SDK
- @appKey: 用户填写 appkey
- @appSecret: 用户填写 appSecret */
const sdk = new dtkSdk({appKey:'',appSecret:''});
// API 调用方法 // xxxAPI 为 service 中的方法名 sdk.service.xxxAPI({ version: 'v1.0.0', url: 'https://u.jd.com/Ql8mTIs' }).then((res) => { console.log(res, '接口调用成功') }, (error, body) => { console.log(error, '接口调用失败'); });
参与贡献
- Fork 本仓库
- 新建 Feat_xxx 分支
- 提交代码
- 新建 Pull Request
特技
- 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
- Gitee 官方博客 blog.gitee.com
- 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
- GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
- Gitee 官方提供的使用手册 https://gitee.com/help
- Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/