Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yeliex/zwdd
专有钉钉node-sdk
https://github.com/yeliex/zwdd
Last synced: about 2 months ago
JSON representation
专有钉钉node-sdk
- Host: GitHub
- URL: https://github.com/yeliex/zwdd
- Owner: yeliex
- License: mit
- Created: 2022-01-11T10:00:03.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-08T08:51:35.000Z (over 2 years ago)
- Last Synced: 2024-10-28T16:43:03.914Z (2 months ago)
- Language: TypeScript
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}
```