Skip to content

seven-io/beehive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seven logo

seven SMS Bee for Beehive

Native bee for Beehive that sends SMS messages via the seven gateway.

MIT License Beehive bee Go 1.18+


Features

  • Native Beehive Bee - Compiled into the Beehive binary as a regular bee
  • Templated Messages - Interpolate event payloads via Go template syntax ({{.timestamp}} etc.)
  • Multiple Recipients - Comma-separate phone numbers, or reference seven contact-book groups

Prerequisites

Installation

go get github.com/seven-io/beehive

Add the import to hives.go:

import (
    // ...
    _ "github.com/seven-io/beehive"
)

Then download dependencies and recompile:

go mod download
make

Configuration

Add a seven bee to your Beehive conf.json:

{
  "Bees": [
    {
      "Name": "seven SMS Example Bee",
      "Class": "sevenbee",
      "Description": "A bee to demonstrate seven with Beehive",
      "Options": [
        { "Name": "api_key", "Value": "YOUR_SEVEN_API_KEY" },
        { "Name": "from",    "Value": "+490123456789" },
        { "Name": "to",      "Value": "+490123456789,+456789012345" }
      ]
    }
  ]
}
Option Description
api_key seven API key. Sign up and get one for free.
from Sender ID. Up to 11 alphanumeric or 16 numeric characters.
to Comma-separated recipient list. Phone numbers, contact-book entries or group names.

Usage

Action: sms

Send an SMS. The text option supports event interpolation:

{
  "Actions": [
    {
      "Bee": "seven SMS Example Bee",
      "Name": "sms",
      "Options": [
        {
          "Name": "text",
          "Type": "string",
          "Value": "The current time is {{.timestamp}}"
        }
      ]
    }
  ]
}

Support

Need help? Feel free to contact us or open an issue.

License

MIT

About

Official seven Bee

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Contributors

Languages