Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 512 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 512 Bytes

Golang library for SMS.RU

Usage:

package main

import (
    sms "github.com/baboooin/go_sms_ru"
)

func main{
  c := sms.SmsRU(Ваш API_ID)
    if res, err := c.Balance(); err == nil {
	    log.Println(res)
    }
    if res, err := c.Limit(); err == nil {
	    log.Println(res)
    }
    if res, err := c.Send("+ Mobile number", "Message"); err == nil {
	    log.Println(res)
    }
    if res, err := c.Call("+ Mobile number"); err == nil {
	    log.Println(res)
    }
}