Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

youzanyun-sdk-nodejs

Package Overview
Dependencies
Maintainers
4
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youzanyun-sdk-nodejs

有赞云 nodejs sdk

  • 2.0.0-beta.22
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
4
Weekly downloads
 
Created
Source

介绍

  • 免鉴权 SDK 主要解决了有容器的开发者在调用有赞云开放 API 的时候的鉴权问题。简化了开发者的鉴权流程,开发者无需管理 Token,完全由免鉴权 SDK 托管 Token 服务,开发者只需要直接调用 API。
  • 目前提供了 Java 和 NodeJS 版本的 SDK
  • 目前只支持在容器应用(暂不支持无容器应用),支持云函数

使用

1. 安装依赖

npm install youzanyun-sdk-nodejs or yarn add youzanyun-sdk-nodejs

2. 引入依赖

const sdk = require("youzanyun-sdk-nodejs");

3. 使用 sdk

const sdk = require("youzanyun-sdk-nodejs");

class ApiController extends Controller {
  async getShopConfig() {
    const { ctx } = this;
    const { kdtId } = ctx.query;
    const result = await sdk.callApi(
      {
        api: "youzan.shop.configs.get",
        version: "1.0.0",
        params: {
          keys: ["is_youzan_secured", "customer_blacklist_switch"],
        },
        files: null,
        kdtId,
      },
      {}
    );
    ctx.body = result;
  }
}

FAQs

Package last updated on 15 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc