1.0.15 • Published 9 years ago

wechat_service_message v1.0.15

Weekly downloads
1
License
MIT
Repository
-
Last release
9 years ago

Simple use

var Service_Message = require('wechat_service_message');

var sendData = {
	type: type,							//type can be "text", "image" or "voice"
	media_id: media_id,					//media_id is the response you got from https://qyapi.weixin.qq.com/cgi-bin/media/upload?access_token=ACCESS_TOKEN&type=TYPE
	touser: toUser,						//the user_id in wechat-qy
	openid: openid,						//the openid in wechat-mp
	access_token: access_token			//use CorpID and Secret in the qy kf service to exchange access_token
};										

Service_Message.sendMessage(sendData);
  • Where access_token is the access_token you got from other api.
  • data is an object including type content touser openid and access_token

Installation

$ npm install wechat_service_message
1.0.15

9 years ago

1.0.14

9 years ago

1.0.13

9 years ago

1.0.12

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago