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

Wikis For Dummies

Wikis For Dummies

Dan Woods、Peter Thoeny / For Dummies / 2007-7-23 / USD 24.99

Corporations have finally realized the value of collaboration tools for knowledge sharing and Wiki is the open source technology for creating collaborative Web sites, as either a public site on the In......一起来看看 《Wikis For Dummies》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

SHA 加密
SHA 加密

SHA 加密工具

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

HSV CMYK互换工具