WeChat official account development in Go language

Time:2020-11-2

preface

Two days ago, I shared the development of WeChat public official account of cloud network.

<!–more–>

WeChat official account development

For details, please click ronetting / MP dev

  • At present, music only supports network cloud suppression
usage:
-/ help ා view help
-/ music / play /: Sid ා play music sid is the song ID
-/ music / URL /: Sid ා get music download link
-/ music / search /: Keywords
-/ music / search /: keywords /: page
-/ music /: name ා search and play the first song by default

use

  • test

Suppose you have completed the configuration file correctly

git clone https://github.com/ronething/mp-dev.git
cd mp-dev && make build && cd bin
./wechat-mp -c ./example.yaml

Intranet penetration, such as ngrok, can be used during testing

  • deploy

Suppose you have completed the configuration file correctly
And the server is Linux AMD64 architecture

git clone https://github.com/ronething/mp-dev.git
cd mp-dev && make deploy

thank

  • NeteaseCloudMusicApi
  • silenceper/wechat
  • echo

This paper is published by openwrite, an operation tool platform for blog group post, multi post, etc