mirror of
https://github.com/nikoksr/notify.git
synced 2025-01-22 03:09:35 +02:00
chore(fmt): run 'make fmt'
This commit is contained in:
parent
e859e76d77
commit
f7597a0fe5
@ -2,8 +2,9 @@ package textmagic
|
||||
|
||||
import (
|
||||
"context"
|
||||
textMagic "github.com/textmagic/textmagic-rest-go-v2/v2"
|
||||
"strings"
|
||||
|
||||
textMagic "github.com/textmagic/textmagic-rest-go-v2/v2"
|
||||
)
|
||||
|
||||
// Service allow you to configure a TextMagic SDK client.
|
||||
@ -17,7 +18,6 @@ type Service struct {
|
||||
// New creates a new text magic client. Use your user-name and API key from
|
||||
// https://my.textmagic.com/online/api/rest-api/keys.
|
||||
func New(userName, apiKey string) *Service {
|
||||
|
||||
config := textMagic.NewConfiguration()
|
||||
client := textMagic.NewAPIClient(config)
|
||||
|
||||
@ -35,7 +35,6 @@ func (s *Service) AddReceivers(phoneNumbers ...string) {
|
||||
|
||||
// Send sends a SMS via TextMagic to all previously added receivers.
|
||||
func (s *Service) Send(ctx context.Context, subject, message string) error {
|
||||
|
||||
auth := context.WithValue(ctx, textMagic.ContextBasicAuth, textMagic.BasicAuth{
|
||||
UserName: s.userName,
|
||||
Password: s.apiKey,
|
||||
|
Loading…
x
Reference in New Issue
Block a user