typed-jd-union-cpsapi
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

京东联盟 NodeJS API

根据 京东开放平台API文档 生成的带TypeScript类型定义和注释的SDK

模块状态

  • NPM version

安装

$ npm install typed-jd-union-api

Usage

import {JdUnionAPI} from 'typed-jd-union-api'

async function run() {
  const client = new JdUnionAPI({
    appKey: 'xx',
    secretKey: 'xxx'
  })
  
  const result = await client.queryActivity({
    activityReq: { pageSize: 3 }
  })
  
  console.log(result.totalCount)
}

/typed-jd-union-cpsapi/

    Package Sidebar

    Install

    npm i typed-jd-union-cpsapi

    Weekly Downloads

    1

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    257 kB

    Total Files

    146

    Last publish

    Collaborators

    • zakkzhang