timbillstrom / elks

46Elks API wrapper built using Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

46Elks API wrapper built using Go

Codacy Badge

Future features

  • Send SMS
  • Send MMS
  • Place Automated Phone Calls
  • // TODO… 🤔

Usage

  • Get module: go get -u github.com/timbillstrom/elks

Send SMS

package main

import (
    "os"
    "github.com/timbillstrom/elks"
)

func main() {
    client := elks.NewClient(
        os.Getenv("46_USERNAME"),
        os.Getenv("46_SECRET"),
        false, // No message will be sent when this is true.
    )
    res, err := client.SendMessage(&elks.SMS{
        From:    "Moose",
        To:      "+46…",
        Message: "Är du ute och älgar?",
    })
    ...
}

About

46Elks API wrapper built using Go.


Languages

Language:Go 100.0%