mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
20 lines
397 B
Go
Executable File
20 lines
397 B
Go
Executable File
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/emoji"
|
|
)
|
|
|
|
// Send an emoji to anyone via SMS. Messages are sent in the form '<message> Sent from <from>'
|
|
func main() {
|
|
emojiService := emoji.NewEmojiService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := emojiService.Send(&emoji.SendRequest{
|
|
From: "Alice",
|
|
Message: "let's grab a :beer:",
|
|
To: "+44782669123",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|