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 - orangle/sgip1.2: 联通短信网关 sgip1.2 python实现

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
.gitignore
.gitignore
 
 
SGIP1_2.doc
SGIP1_2.doc
 
 
__init__.py
__init__.py
 
 
conf.py
conf.py
 
 
readme.md
readme.md
 
 
sgip.py
sgip.py
 
 
sgip_client.py
sgip_client.py
 
 
sgip_server.py
sgip_server.py
 
 
sgip_server_test.py
sgip_server_test.py
 
 
sgip_webapi.py
sgip_webapi.py
 
 
sgip_webserver.py
sgip_webserver.py
 
 
~$GIP1_2.doc
~$GIP1_2.doc
 
 

Repository files navigation

sgip1.2 - python

可以基于此项目进行联通短信接口的开发等。 基础代码来自于fy_sgip4py 可能他们实现的sgip的版本比较早,有些东西不好用了,这里用的是1.2版本。

sgip协议是联通的短信网关协议,需要和运营商申请才可以获得。

主要的作用的是给用户发验证短息,所以有些功能没有完全实现,但是协议部分是可以使用的 实现的内容:

  • sgip 协议的基本封包解包
  • sgip_client.py 过sgip协议发送命令到网关
  • sgip_server.py 用来接收 SMG 的回执信息(report),还有对上行短信的处理,可以根据业务自行拓展
  • sgip_webapi.py 通过http协议发送短信请求,sgip_webserver.py调用联通短信接口发送短信(例子作用)

sgip_webapi.py sgip_webserver.py为了解决其他ip的服务器不能直接调用联通sgip协议的问题,整个实现比较简单,可以根据需求使用其他web框架(django,tornado等)和http客户端(requests等),还有对传输内容的校验和加密等。

有问题请提 issues

About

联通短信网关 sgip1.2 python实现

Resources

Readme
Activity

Stars

21 stars

Watchers

3 watching

Forks

12 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — 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.