GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - yedamao/go_smgp: This is an implementation of SMGP 3.0 for Go

BranchesTags
Open more actions menu

Latest commit

 

History

29 Commits
29 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
cmd
cmd
 
 
smgp
smgp
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 

Repository files navigation

SMGP 3.0

Build Status Go Report Card codecov

go_smgp是为SP设计实现的smgp3.0协议开发工具包。包括smgp协议包和命令行工具。

安装

go get github.com/yedamao/go_smgp/...
cd $GOPATH/src/github.com/yedamao/go_smgp && make

Smgp协议包

support operation

  • Login
  • LoginResp
  • Submit
  • SubmitResp
  • Deliver
  • DeliverResp
  • ActiveTest
  • ActiveTestResp
  • Exit
  • ExitResp

Example

参照cmd/transmitter/main.go, cmd/receiver/main.go

命令行工具

mockserver

SMGW短信网关模拟器

Usage of ./bin/mockserver:
  -addr string
        addr(本地监听地址) (default ":8890")

transmitter

提交单条短信至短信网关

Usage of ./bin/transmitter:
  -addr string
        smgw addr(运营商地址) (default ":8890")
  -clientID string
        登陆账号
  -dest-number string
        接收手机号码, 86..., 多个使用,分割
  -msg string
        短信内容
  -secret string
        登陆密码
  -sp-number string
        SP的接入号码
  -spID string
        企业代码

receiver

接收运营商回执状态/上行短信

Usage of ./bin/receiver:
 -addr string
       smgw addr(运营商地址) (default ":8890")
 -clientID string
       登陆账号
 -secret string
       登陆密码

About

This is an implementation of SMGP 3.0 for Go

Topics

smgpsms

Resources

Readme
MIT license
Activity

Stars

14 stars

Watchers

1 watching

Forks

13 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.