Giter VIP home page Giter VIP logo

getui's Introduction

getui

个推push

Software License GoDoc

由于官方没有推出Go版本的推送SDK,故自己实现了。支持:

  • 按cid单推
  • 按cid群推
  • 全推
  • 根据taskId查询推送结果

使用起来简单,推送模板支持自由组合。各接口独立,便于扩展。

使用

安装:

go get https://github.com/geek-go/getui

SDK 测试(使用前先打开getui_test.go配置appid等参数):

# 测试单推
go test -v  -run="^TestGeTui_SendByCid$" 

# 测试群推
go test -v  -run="^TestGeTui_SendByCids$"

# 测试全推
go test -v  -run="^TestGeTui_SendAll$"  

其它例子参照 getui_test.go 的调用。

测试用例里针对SDK进行了一些封装,大家可以参考快速实现。例如IGtTransmissionTemplate()是透传模板的实现。其它模板可以参考实现,比较简单。

文档参考

https://pkg.go.dev/github.com/geek-go/getui

如何参与该项目

如果需要增加个推其它接口的实现,请参考api_开头的文件实现。规范:

  • 每个接口对应一个文件
  • 每个文件均包含接口请求结构体、接口响应结构体、接口调用的实现
  • 增加测试用例
  • 注意避免过度封装,以免使用者困惑

getui's People

Contributors

52fhy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

getui's Issues

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.