当前位置:网站首页>微信公众号调试与Natapp环境搭建
微信公众号调试与Natapp环境搭建
2022-06-24 15:34:00 【扫地升】
本来使用的Ngrok外网映射工具,奈何在微信公众号测试号管理中的接口配置信息这一步骤总是配置失败。经过查找资料最终选择Natapp。微信公众号测试源码参考[1][2],只是把[3]中的Ngrok替换为Natapp。接下来重点介绍下Natapp的配置过程。
一.Natapp配置过程
1.Natapp注册
注册过程介绍省略,主要是需要实名认证。
2.Natapp配置
点击购买隧道->免费隧道:
配置免费隧道: 
3.启动Natapp
./natapp -authtoken yourauthtoken
启动后如下所示: 
二.测试号配置过程
1.后端程序启动
将[2]服务器后端程序运行起来后,如下所示: 
2.测试号管理[测试环境]
打开测试号管理页面[5],首先扫码,然后配置接口信息和域名: 
3.公众号配置[生产环境]
公众号基本配置信息参考服务器后端配置: 
三.公众号测试
1.发送文本消息

2.对应的代码位置
除了发送文本消息外,还可以自定义开发发送图像、视频、音频、位置、文件等消息。至此,微信公众号的测试开发环境就搭建完毕,可以愉快的微信公众号开发调试了。
参考文献:
[1]1个类,2个方法,3句代码,完成微信公众号开发的极简流程:https://www.cnblogs.com/szw/p/wecaht-minimization-example.html
[2]JeffreySu/Senparc.Weixin.Samples:https://github.com/JeffreySu/Senparc.Weixin.Samples
[3]在开发环境内网穿透测试微信公众号:https://www.cnblogs.com/szw/p/Intranet-debugging-wechat.html
[4]Natapp:https://natapp.cn/
[5]测试号管理页面:https://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index
边栏推荐
- 运营商5G用户渗透远远比4G慢,5G的普及还得看中国广电
- clang: warning: argument unused during compilation: ‘-no-pie‘ [-Wunused-command-line-argument]
- leetcode 139. Word break word split (medium)
- Most common usage of vim editor
- 几种常见的DoS攻击
- FreeRTOS新建任务不执行问题解决办法
- 安装ImageMagick7.1库以及php的Imagick扩展
- Easynvr has been connected to the third-party supervision platform. How to achieve local Internet access
- Three solutions for Jenkins image failing to update plug-in Center
- [my advanced OpenGL learning journey] learning notes of OpenGL coordinate system
猜你喜欢

Mongodb Getting started Practical Tutoriel: Learning Summary Table des matières

I just came back from the Ali software test. I worked for Alibaba P7 in 3+1, with an annual salary of 28*15

Three solutions for Jenkins image failing to update plug-in Center

打破内存墙的新利器成行业“热搜”!持久内存让打工人也能玩转海量数据+高维模型
![[my advanced OpenGL learning journey] learning notes of OpenGL coordinate system](/img/21/48802245fea2921fd5e4a9a2d9ad18.jpg)
[my advanced OpenGL learning journey] learning notes of OpenGL coordinate system

How to expand disk space on AWS host

我与“Apifox”的网络情缘

CAP:多重注意力机制,有趣的细粒度分类方案 | AAAI 2021

【C语言刷题——Leetcode12道题】带你起飞,飞进垃圾堆

Solution of intelligent all in one machine in expressway service area
随机推荐
60 个神级 VS Code 插件!!
实现领域驱动设计 - 使用ABP框架 - 领域逻辑 & 应用逻辑
How to optimize performance
为什么企业实施WMS仓储管理系统很容易失败
Several common DoS attacks
如何实现容器内的SqlServer的数据库迁移
Unimelb COMP20008 Note 2019 SM1 - Data formats
如何轻松实现在线K歌房,与王心凌合唱《山海》
Most common usage of vim editor
Convert text to hexadecimal, and reverse
如何扩展aws主机上的磁盘空间
How to obtain ECS metadata
MySQL binlog
Istio practical tips: Customize Max_ body_ size
【Prometheus】6. Prometheus and kubernetes (incomplete)
Is it safe for futures companies to open accounts
在Gradle 中对Junit5 测试框架引用
Linux record -4.22 MySQL 5.37 installation (supplementary)
Industry cases of successful digital transformation
Parameterized tests guide in junit5