微信菜单 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

What Technology Wants

What Technology Wants

Kevin Kelly / Penguin Group (USA) Incorporated / 2010-10-14 / USD 27.95

A refreshing view of technology as a living force in the world. This provocative book introduces a brand-new view of technology. It suggests that technology as a whole is not a jumble of wires and ......一起来看看 《What Technology Wants》 这本书的介绍吧!

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

在线 XML 格式化压缩工具

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

RGB CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具