1.0.15 • Published 10 years ago

wechat_service_message v1.0.15

Weekly downloads
1
License
MIT
Repository
-
Last release
10 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

10 years ago

1.0.14

10 years ago

1.0.13

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago