项目作者: rukavina

项目描述 :
SMS inbound gate mock server
高级语言: Go
项目地址: git://github.com/rukavina/sms-inbound-mock-go.git
创建时间: 2018-05-24T07:15:52Z
项目社区:https://github.com/rukavina/sms-inbound-mock-go

开源协议:GNU General Public License v3.0

下载


SMS Inbound Mock test tool, golang

This is a mock server for HORISEN AG premium transit SMS API: https://www.horisen.com/en/help/api-manuals/premium-transit

Running the example

The example requires a working Go development environment. The Getting
Started
page describes how to install the
development environment.

Once you have Go up and running, you can download, build and run the example
using the following commands.

  1. go get github.com/gorilla/websocket
  2. git clone git@github.com:rukavina/sms-inbound-mock-go.git
  3. cd sms-inbound-mock-go
  4. ./install_dev.sh

Next time you need to start the server and test bot just run:

  1. ./start_dev.sh

In order to start the server only:

  1. ./sms-inbound-mock-go

To use the chat example, open http://localhost:9200/ in your browser.

Configuration

The mock server is pre-configured to work with simple php sms bot in directory test_client. You can easily set in UI the URL of your SMS bot. /public/js/config.js holds some default options for the UI.

If you need to change the port or host where your mock server is running at, open start_dev.sh and replace the line

  1. ./sms-inbound-mock-go

with

  1. ./sms-inbound-mock-go --addr=mydomain:myport