Socket
Socket
Sign inDemoInstall

github.com/brentmountford/go-reachsms

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/brentmountford/go-reachsms

A Go package that provides bindings to the Reach SMS REST API See https://www.reach-interactive.com/developers/api/


Version published

Readme

Source

go-reachsms

A Go lang wrapper for the Reach SMS API

Install

go get github.com/brentmountford/go-reachsms

Usage

Import the library

import "github.com/brentmountford/go-reachsms"

Example

package main

import (
    "fmt"
    "github.com/brentmountford/go-reachsms"
)

func main() {
    reachSmsApi, _ := reachsms.Create("username", "password")

    fmt.Println(reachSmsApi.GetBalance())
    fmt.Println(reachSmsApi.GetMessage("f1dcd3fe-4cca-46a6-b3c5-fd4dd0xxx"))

    message := reachsms.NewMessage(
        "07376959xxx,07867440xxx",
        "Test",
        "This is a test message",
    )
    fmt.Println(message)
    fmt.Println(reachSmsApi.SendMessage(message))
}

Documentation

https://godoc.org/github.com/brentmountford/go-reachsms

FAQs

Last updated on 22 Sep 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc