sarafanfm / smsc

smsc.ru http api client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smsc

smsc is an HTTP API client for smsc.ru.

go get -u github.com/koorgoo/smsc

Example

package main

import (
	"log"
	"github.com/koorgoo/smsc"
)

func main() {
	c, err := smsc.New(smsc.Config{Login: "me", Password: "secret"})
	if err != nil {
		log.Fatal(err)
	}
	_, err = c.Send("How are you?", []string{"+71234567890"})
	if err != nil {
		log.Fatal(err)
	}
}

About

smsc.ru http api client

License:MIT License


Languages

Language:Go 100.0%