# kingdee-k3-webapi

> The web api of Kingdee K3 cloud.

Latest version **1.0.5** (published 2019-05-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install kingdee-k3-webapi
pnpm add kingdee-k3-webapi
yarn add kingdee-k3-webapi
bun add kingdee-k3-webapi
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-05-17 |
| First published | 2019-05-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8.2 |
| Dependencies | 2 |
| Unpacked size | 20.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Quin |
| Maintainers | quin |
| Keywords | kingdee, k3, webapi |

## Links

- npm: https://www.npmjs.com/package/kingdee-k3-webapi
- Repository: https://github.com/BeastOne/node_k3webapi
- Issues: https://github.com/BeastOne/node_k3webapi/issues
- npm.io page: https://npm.io/package/kingdee-k3-webapi

## Dependencies (2)

- [uuid](https://npm.io/package/uuid.md) ^3.3.2
- [lodash](https://npm.io/package/lodash.md) ^4.17.3

## Recent versions

- 1.0.5 (latest) — 2019-05-17
- 1.0.4 — 2019-05-17
- 1.0.3 — 2019-05-17
- 1.0.2 — 2019-05-17
- 1.0.1 — 2019-05-17
- 1.0.0 — 2019-05-17

## README

Kingdee K3 Cloud Web API
===========================

The Kingdee K3 web api library exported as Node.js modules.

Installation
===========================

###Using npm:

```Bash
$ npm i -g kingdee-k3-webapi
$ npm i --save kingdee-k3-webapi
```

###In Node.js:

```Javascript
var K3CloudApiClient = require('kingdee-k3-webapi');

var client = new K3CloudApiClient('http://your.k3.site');

client.getDataCenter()
  .then((data) => {
    console.log(data);
  });

// Log on to Kingdee K3 Cloud using a 3rd party app account.
client.login('dbId', 'user', 'appId', 'appSecret', lang)
  .then((data) => {
    console.log('Log on to K3 Cloud success.');
      
    if (data.LoginResultType == 1) {
      client.view('BD_MATERIAL', {
        // CreateOrgId: 1,
        Number: '01.01.01.001'
        // Id: ''
      })
        .then((data) => {
          console.log(data);

          client.view('ORG_Organizations', {
            Id: data.Result.Result.CreateOrgId_Id
          })
            .then((data) => {
              console.log(data);
            })
            .catch((err) => {
              console.log('view material error:' + err.message);
            });
        })
        .catch((err) => {
          console.log('view material error:' + err.message);
        });
    }
  })
  .catch((err) => {
    console.log('Log on to K3 Cloud failed.');
    console.log(err.message);
  });
```

See the [package source](https://github.com/BeastOne/node_k3webapi)  for more details.

---
_Source: https://npm.io/package/kingdee-k3-webapi · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
