Skip to content

Go binary + library for the unofficial Bouygues Telecom SMS Api (5 SMS/day)

License

Notifications You must be signed in to change notification settings

tomsquest/bouyguessms

Repository files navigation

Bouygues SMS

Build Status GitHub release GitHub Release Date GoDoc

Send up to 5 free SMS per day using Bouygues Telecom unofficial API.
The program is released as a standalone binary and it can also be used as a GO library or as a Docker image.
The code is written in Golang.

CURRENT STATUS: BROKEN/NOT WORKING

I am not more using Bouygues Telecom as my telco provider and @cyosp reported that Bouygues may have changed something on their side.

Try it by yourself and a PR would be very much appreciated.

Usage

Using from the command line:

$ bouyguessms \
    -login "yourEmail@domain.com" \
    -pass  "yourPassword" \
    -to "0601010101,0602020202" \
    -msg "Hello World"
SMS sent successfully at 2017-10-12T07:10:39+02:00. SMS left: 4.

As a library in your GO program:

import "github.com/tomsquest/bouyguessms"

smsLeft, err := SendSms("yourEmail@domain.com", "yourPassword",
    "Hello Gophers, it's "+time.Now().String(),
    "0601010101")
if err != nil {
    log.Fatalln("error sending sms", err)
}
log.Printf("SMS sent. SMS left: %d.\n", smsLeft)

As a Docker image:

docker run -it --rm --read-only --init --security-opt="no-new-privileges:true" \
  tomsquest/bouyguessms \
  -login "yourEmail@domain.com" \
  -pass  "yourPassword" \
  -to "0601010101,0602020202" \
  -msg "Hello World"

Download/Release

Download binaries from the Release page.

Inspiration

Original code from Y3nd's bouygues-sms written in Javascript. Thanks!

About

Go binary + library for the unofficial Bouygues Telecom SMS Api (5 SMS/day)

Topics

Resources

License

Stars

Watchers

Forks

Packages