WeChat Node Client
Description:
This is a wechat client for node. It authenticates and acts as though the user is using the official wechat web interface.
Note: Development is continuing.
Installation:
npm install --save wechat-webclient
API Flow:
- Get uuid from WeChat service.
- Get QR code from WeChat service using uuid.
- Display QR code to user, so that they can scan it using their WeChat phone app
- User scans QR code, and confirms they'd like to login.
- Get the login data (cookies, postdata) from the WeChat service so it knows who we are.
- Get contact list, contact's icons
- Recieve messages as they come in, send messages and logout at will.
Usage:
var wechat = ;var client = ; client // Gets uuid, passes to next function // resolves when QR scan confirmed with the login url // gets passed login url, resolves with login data // initializes data for the user, (e.g. who this user is, auth data) ; ;