📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

github.com/m3o-apis/sms-go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/m3o-apis/sms-go

v0.0.0-20211027120801-d3243f174fc6
Source
Go
Version published
Created
Source

Sms

An m3o.com API. For example usage see m3o.com/Sms/api.

Endpoints:

Send

Send an SMS.

https://m3o.com/sms/api#Send

package example

import(
	"fmt"
	"os"

	"github.com/micro/services/clients/go/sms"
)

// Send an SMS.
func SendSms() {
	smsService := sms.NewSmsService(os.Getenv("M3O_API_TOKEN"))
	rsp, err := smsService.Send(&sms.SendRequest{
		From: "Alice",
Message: "Hi there!",
To: "+447681129",

	})
	fmt.Println(rsp, err)
}

FAQs

Package last updated on 27 Oct 2021

Did you know?

Socket

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