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

k3cloudapi

v1.1.2

Published

kingdee k3cloud webapi nodejs sdk.

Downloads

20

Readme

金蝶星空云webapi nodejs SDK

kingdee webapi nodejs sdk.

Usgae

  • $ npm install k3cloudqpi --save

  • 配置信息

    • 配置相关的基础信息

    • 其中auth节点需要金蝶k3cloud管理员进入 系统管理->第三方系统认证->新增 生成密钥和填写appid和app名称

{
  baseURL: 'http://erp.kingdee.com',
  accid: 'it dc id', // 数据中心
  lcid: 2052,
  auth: {            // 第三方系统认证
    appid: 'appid',
    appname: 'appid',
    appsecret: 'appsecret'
  },
  apis: {           // webapi
    authPath: '/K3Cloud/Kingdee.BOS.WebApi.ServicesStub.AuthService.LoginByAppSecret.common.kdsvc',
    listPath: '/K3Cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.ExecuteBillQuery.common.kdsvc',
    getPath: '/K3Cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.View.common.kdsvc',
    approvalPath: '/K3Cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.ExcuteOperation.common.kdsvc',
    forwardPath: '/K3Cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.ExcuteOperation.common.kdsvc',
    addSignPath: '/K3Cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.ExcuteOperation.common.kdsvc',
    attachmentPath: '/K3Cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.ExcuteOperation.common.kdsvc',
    mobileBillDetailPath: '/K3Cloud/SZGD.K3.Business.BillPulgin.WebAPI.MobileViewAPI.ExecuteService,SZGD.K3.Business.BillPulgin.common.kdsvc'
  }
}
const K3cloudapi = requrie('k3cloudapi')
const config = require('config').kingdee // 配置信息参照上面⬆️

const k3cloudapi = new K3cloudapi(config)

k3cloudapi.auth().then(cookie => {
  // cookie 建议本地缓存 避免每次请求都重新获取
  const formId = 'BD_Empinfo'         // 表单ID
  const fieldKeys = ['FID', 'FName']  // 需要返回的字段
  k3cloudapi.list({ cookie, formId, fieldKeys })
    .then(r => console.log(r)).catch(e => console.log(e))
  k3cloudapi.get({ cookie, formId, id: 143494 })
    .then(r => console.log(r)).catch(e => console.log(e))
})
// 支持await
const K3cloudapi = requrie('k3cloudapi')
const config = require('config').kingdee // 配置信息参照上面⬆️

const k3cloudapi = new K3cloudapi(config)
const cookie = await k3cloudapi.auth()
const formId = 'BD_Empinfo'         // 表单ID
const fieldKeys = ['FID', 'FName']  // 需要返回的字段
const results = await k3cloudapi.list({ cookie, formId, fieldKeys })

Contact

Change Log

  • 2019-06-25: 添加审批通过/审批驳回/转发/加签/查看附件列表的接口
  • 2019-05-27: 添加审核接口
  • 2019-05-23: 权限验证/列表/详情接口