Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yeliex/zwdd

专有钉钉node-sdk
https://github.com/yeliex/zwdd

Last synced: about 2 months ago
JSON representation

专有钉钉node-sdk

Awesome Lists containing this project

README

        

# zwdd

专有钉钉node-sdk

## Install

```shell
npm install zwdd
# or
yarn add zwdd
```

## Usage

```typescript
import SDK from 'zwdd';

const sdk = new SDK({
appKey: 'APP_KEY',
appSecret: 'APP_SECRET',
});
```

## API Interface
```typescript
export default class ZWDD {
constructor(options: Options);
request(api: string, init?: RequestInit): Promise;
getAccessToken(): Promise;
getAppUserInfo(authCode: string): Promise;
getJSApiTicket(): Promise;
}

interface Options {
appKey: string;
appSecret: string;
endpoint?: string;
hostIp?: string; // server local ip
hostMac?: string; // server local mac address
}
```