Giter Site home page Giter Site logo

sgip1.2's Introduction

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

sgip1.2's People

Contributors

orangle avatar

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.