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)
- Host: GitHub
- URL: https://github.com/tomsquest/bouyguessms
- Owner: tomsquest
- License: mit
- Created: 2017-10-10T04:59:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-23T10:03:01.000Z (almost 6 years ago)
- Last Synced: 2025-04-13T20:56:26.260Z (6 months ago)
- Topics: bouygues, golang, sms
- Language: Go
- Size: 1.64 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bouygues SMS
[](https://travis-ci.org/tomsquest/bouyguessms)
[]()
[]()
[](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!