Skip to content

고랭 공부할 겸 만드는 Toast SMS API 클라이언트(비공식)

License

Notifications You must be signed in to change notification settings

dohyungp/toast-notification-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Toast Notification Client

발송 코드 예시

package main

import (
    "github.com/dohyungp/toast-notification-go/sms"
)

func main() {
	client := sms.NewToastClient("<APP_KEY>", "<API_SECRET>")
	recipient := sms.Recipient{RecipientNo: "01000000000"}
	message := sms.TextMessage{
		Body:          "Hello, Toast",
		SendNo:        "0700000000",
		RecipientList: []sms.Recipient{recipient},
	}
	client.SendMessage(message)
}

About

고랭 공부할 겸 만드는 Toast SMS API 클라이언트(비공식)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published