Coder Social home page Coder Social logo

server_tan's Introduction

server碳

微信通知推送服务,兼容server酱的一对多推送服务接口(push bear)

安装

源码编译

cargo install --git https://github.com/chinuno-usami/server_tan

使用预编译可执行文件

Release页面下载对应可执行文件

使用

运行服务

  1. 申请微信服务号,或者自用情况下可以使用微信接口测试号,配置好推送模板,公众号配置接口为 /wx 端口仅为80或443
  2. 编写详情页面展示模板,可以参考默认模板
  3. 编辑config.toml配置文件,配置文件可以参照配置文件模板修改
  4. 配置Nginx等web服务器
  5. 直接执行server_tan启动服务,默认读取当前目录下的config.toml作为配置文件,可通过-c参数指定特定的配置文件

管理接口

因为对前端不是很熟悉,没做web交互界面,也还没有实现二维码订阅,所有操作通过微信文字发命令交互。
具体操作可以在订阅服务号后发送help查看详情

API接口

引用push bear的接口介绍:

1个接口,2个参数 简单很重要 不用再看文档看到吐。1个接口,2个参数,分分钟上手。

https://pushbear.ftqq.com/sub?sendkey={sendkey}&text={text}&desp={desp}

PS: 会为每一个消息通道分配独立的SendKey和二维码。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.