@i5shuyi/wecom-sdk
v0.1.0-alpha.5
Published
企业微信 Node.js SDK
Downloads
26
Readme
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.