0.1.0-alpha.5 • Published 1 year ago

@i5shuyi/wecom-sdk v0.1.0-alpha.5

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

WeCom SDK for Node.js

A JavaScript SDK for interacting with WeCom (企业微信) APIs.

Features

  • Comprehensive API coverage
  • TypeScript support
  • Two usage patterns for flexibility

Installation

npm install @i5shuyi/wecom-sdk

Usage

Basic Usage

Example

import { WeCom, WeComAuth } from "@i5shuyi/wecom-sdk";

const auth = new WeComAuth({
  corpId: 'your_wecom_corp_id',
  corpSecret: 'your_wecom_corp_secret'
});

const api = new WeCom(auth);

const contacts = await api.getExternalContactList('ZhangSan');

Modular Usage

Example

import { WeComAuth, ExternalContactApi } from "@i5shuyi/wecom-sdk";

const auth = new WeComAuth({
  corpId: 'your_wecom_corp_id',
  corpSecret: 'your_wecom_corp_secret'
});

const api = new ExternalContactApi(auth);

const contacts = await api.getExternalContactList('ZhangSan');

Contributing

Contributions are welcome! Please read the contributing guidelines first.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

Special thanks to all contributors and supporters.

0.1.0-alpha.5

1 year ago

0.1.0-alpha.4

1 year ago

0.1.0-alpha.3

1 year ago

0.1.0-alpha.2

1 year ago

0.1.0-alpha.1

1 year ago

0.1.0-alpha.0

1 year ago