npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@kingdee-nodejs/k3cloud

v0.0.2

Published

A Node.js SDK for Kingdee(金蝶) k3cloud

Downloads

8

Readme

kingdee-nodejs/k3cloud

About

Requirement

Dependencies

Usage

  • Install

    $ npm install @kingdee-nodejs/k3cloud
  • Test

    const K3CloudApiSdk = require("@kingdee-nodejs/k3cloud");
    
    // ------ 初始化
    config = {
      auth_type: 3, // 授权类型:1 用户名+密码;2 第三方授权应用ID+应用密钥;3 签名;
      host_url: "http||https://xxxxxxxxxxxxxxxxx/k3cloud/", // 金蝶授权请求地址
      acct_id: "xxxxxxxxxx", // 账户ID
      username: "xxxxxxxxxx", // 用户名(授权类型为1时必须)
      password: "xxxxxxxxxx", // 密码(授权类型为1时必须)
      appid: "xxxxxxxxxx", // 应用ID(授权类型为2或3时必须)
      appsecret: "xxxxxxxxxx", // 应用Secret(授权类型为2或3时必须)
      lcid: 2052, // 账套语系,默认2052
    };
    let client = new K3CloudApiSdk(config);
    
    // ------ 发起请求 (基础管理->基础资料->物料->单据查询)
    // 准备POST数据
    postData = {
      FormId: "BD_MATERIAL",
      FieldKeys: "FMATERIALID,FNumber,FName",
      FilterString: "FDocumentStatus = 'C'",
      OrderString: "",
      TopRowCount: 0,
      StartRow: 0,
      Limit: 2,
      SubSystemId: "",
    };
    // 一般调用
    client
      .executeBillQuery(postData)
      .then((resp) => {
        console.log("\n>> 一般调用 <<");
        console.log(resp);
      })
      .catch((error) => {
        console.log(error);
      });
    // 或 await 调用
    (async () => {
      let resp = await client.executeBillQuery(postData);
      console.log("\n>> await调用 <<");
      console.log(resp);
    })();

〜 That is it. 〜