gosdk/adminapi/message_test.go

20 lines
373 B
Go
Raw Normal View History

2024-01-21 18:12:39 +08:00
package adminapi
import (
"fmt"
"strings"
"testing"
)
func TestMessage_Send(t *testing.T) {
s := NewMessage("http://u.batiao8.com", "", "alarm")
mess := make([]string, 0)
mess = append(mess, "加发到")
mess = append(mess, "asdfasdfadfa")
mess = append(mess, "@3q452345~!@@#$$%^&*())")
err := s.Send("jiangyong", strings.Join(mess, "\n"))
fmt.Println(err)
}