微信菜单 API 和命令行工具 node-weixin-menu

码农软件 · 软件分类 · 微信/微信小程序 · 2019-03-14 12:41:26

软件介绍

微信菜单 API 和命令行工具,微信菜单 API 是(node-weixin-api 或者 node-weixin-express)的一个子项目。 它提供:

  1. 菜单API共计4个(create, get, customize, remove)

  2. 命令行工具(wxmenu)

在 node 代码中的使用:

var nodeWeixinMenu = require('node-weixin-menu');var app = {
  id: process.env.APP_ID,
  secret: process.env.APP_SECRET,
  token: process.env.APP_TOKEN
};var auth = require("node-weixin-auth");var config = require("node-weixin-config");
config.app.init(app);

nodeWeixinMenu.create(app, auth, menu, function (error, data) {  //error === true
  //data.errcode === 0
  //data.errmsg === 'ok'});

nodeWeixinMenu.get(app, auth, function (error, data) {  //error === true
  //typeof data.menu
  //typeof data.menu.button});

nodeWeixinMenu.customize(app, auth, function (error, data) {  //error === true
  //data.is_menu_open === 1
  //data.selfmenu_info
  //data.selfmenu_info.button});

nodeWeixinMenu.remove(app, auth, function (error, data) {  //error === true
  //data.errcode
  //data.errmsg});

本文地址:https://codercto.com/soft/d/1325.html

Getting Real

Getting Real

Jason Fried、Heinemeier David Hansson、Matthew Linderman / 37signals / 2009-11-18 / USD 24.99

Getting Real details the business, design, programming, and marketing principles of 37signals. The book is packed with keep-it-simple insights, contrarian points of view, and unconventional approaches......一起来看看 《Getting Real》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具