微信公众平台NodeJs SDK Wechat-NodeJS

码农软件 · 软件分类 · 微信/微信小程序 · 2019-03-14 07:28:51

软件介绍

Wechat-NodeJS微信公众平台开发NodeJs SDK,本SDK要求NodeJs >= 4.x,欢迎大家在issues提问。

安装

npm install wechat-nodejs

说明

使用所有sdk功能前需要初始化wechat句柄,初始化代码如下:

const Wechat = require('wechat-nodejs').Wechat;
const wechat = new Wechat(appId,appSecret);

SDK扩展了JS原始错误类,包含message,code属性,SDK中Promise抛出的错误code为微信返回的errcode,抛出一个自定义错误代码如下:

const AppError = require('wechat-nodejs').AppError;
throw new AppError('参数错误',1);

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

Getting Started with C++ Audio Programming for Game Development

Getting Started with C++ Audio Programming for Game Development

David Gouveia

Written specifically to help C++ developers add audio to their games from scratch, this book gives a clear introduction to the concepts and practical application of audio programming using the FMOD li......一起来看看 《Getting Started with C++ Audio Programming for Game Development》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换