Socket
Socket
Sign inDemoInstall

github.com/kahlys/sms

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/kahlys/sms

Package sms provides a generic interface around API-SMS Wrappers. The sms package must be used in conjuction with a api-sms driver. See https://godoc.org/github.com/kahlys/sms/driver for a list of drivers.


Version published

Readme

Source

Golang SMS-API Wrapper

godoc build status go report Coverage Status

This package provides a generic interface around some api-sms wrappers in order

Instalation

With a correctly configured Go toolchain:

$ go get github.com/kahlys/sms
$ go get github.com/kahlys/driver/<drivername>

Drivers

Examples

Mobimel

import (
    "github/kahlys/sms"
    _ "github/kahlys/sms/driver/mobimel"
)

func main() {
    param := map[string]string{
        "login":"bruce", 
        "password": "91939", 
        "sender": "wayne",
    }
    sender, _ := sms.Init("mobimel", param)
    sender.Send("Meet me at the roof !", "+33666666666")
}

OVH

import (
    "github.com/kahlys/sms"
    _ "github.com/kahlys/sms/driver/ovh"
)

func main() {
    param := map[string]string{
        "account":"sms-xx4242-7",
        "login":"bruce", 
        "password": "91939", 
        "sender": "wayne",
    }
    sender, _ := sms.Init("ovh", param)
    sender.Send("Meet me at the roof !", "+33666666666")
}

FAQs

Last updated on 06 Dec 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc