An open API service indexing awesome lists of open source software.

https://github.com/tomsquest/bouyguessms

Go binary + library for the unofficial Bouygues Telecom SMS Api (5 SMS/day)
https://github.com/tomsquest/bouyguessms

bouygues golang sms

Last synced: 6 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Bouygues SMS

[![Build Status](https://travis-ci.org/tomsquest/bouyguessms.svg?branch=master)](https://travis-ci.org/tomsquest/bouyguessms)
[![GitHub release](https://img.shields.io/github/release/tomsquest/bouyguessms.svg)]()
[![GitHub Release Date](https://img.shields.io/github/release-date/tomsquest/bouyguessms.svg)]()
[![GoDoc](https://godoc.org/github.com/tomsquest/bouyguessms?status.svg)](https://godoc.org/github.com/tomsquest/bouyguessms)

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](https://github.com/tomsquest/bouyguessms/issues/1).

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

## Usage

Using from the command line:

```bash
$ 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:

```go
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:

```bash
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](https://github.com/tomsquest/bouyguessms/releases).

## Inspiration

Original code from [Y3nd](https://github.com/y3nd)'s [bouygues-sms](https://github.com/y3nd/bouygues-sms) written in Javascript. Thanks!