This commit is contained in:
22
backend_v1/providers/ali/sms_notify_client_test.go
Normal file
22
backend_v1/providers/ali/sms_notify_client_test.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package ali
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNewSMSNotifyClient(t *testing.T) {
|
||||
client, err := NewSMSNotifyClient(&Config{
|
||||
AccessKeyId: "LTAI5t86SjiP9zRd3q2w7jQN",
|
||||
AccessKeySecret: "hV7spvJuWh8w0EEIXj8NFi2uBlF4aS",
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
code, err := client.SendTo("11101013734")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
t.Logf("Code: %s", code)
|
||||
}
|
||||
Reference in New Issue
Block a user