@easy-front-core-sdk/xhs
TypeScript icon, indicating that this package has built-in type declarations

1.5.4 • Public • Published

xhs

小红书开放平台 SDK

Usage

初始化

import { XhsCoreFactory } from '@easy-front-core-sdk/xhs';

const xhsCore = XhsCoreFactory.putCore({
    appKey: 'YOUR_APP_KEY',
    appSecret: 'YOUR_APP_SECRET',
});

if (xhsCore) {
    console.log(`xhssdk 初始化成功`);
} else {
    console.log(`xhssdk 初始化失败`);
}

使用

const xhsCore = XhsCoreFactory.getCore('YOUR_APP_KEY');

// 获取订单列表
const package_list = xhsCore.request(
    ApiMethod.PACKAGE__GET_PACKAGE_LIST,
    {
        startTime: 1675735730,
        endTime: 1675735748,
        timeType: 2,
        pageNo: 1,
        pageSize: 100,
    },
    'ACCESS_TOKEN'
);

Readme

Keywords

none

Package Sidebar

Install

npm i @easy-front-core-sdk/xhs

Weekly Downloads

1

Version

1.5.4

License

MIT

Unpacked Size

64.7 kB

Total Files

20

Last publish

Collaborators

  • qianqing