1.1.0 • Published 5 years ago
taoke-sdk v1.1.0
大淘客
安装
您可以在服务器端使用这个包。
Node.js:
npm i taoke-sdk
使用
import inits from 'taoke-sdk'
// 必填
const appKey = ''
const appSecret = ''
// 请求配置参考 https://www.kancloud.cn/yunye/axios/234845
const reqConfig = {
baseURL:'https://openapi.dataoke.com/api/',
timeout: 10000
}
const taoke = new inits(appKey, appSecret, reqConfig)
// 热搜记录
taoke.get('goods/get-goods-list',{
params:{
version:'v1.0.1',
pageId:10
}
}).then(res => {
console.log(res.data)
})