sms completed

This commit is contained in:
Vladimir V Maksimov
2025-12-03 18:34:25 +03:00
parent d7bd28b759
commit 85cbc3e940
4 changed files with 171 additions and 9 deletions

View File

@@ -4,6 +4,8 @@ import (
"log"
"os"
"testing"
"github.com/google/uuid"
)
func loadToken(t *testing.T) string {
@@ -28,3 +30,22 @@ func TestSMS(t *testing.T) {
"Привет",
)
}
func TestSMSWait(t *testing.T) {
token := loadToken(t)
trID, err := SendSMSWait(token, "+79857770038", "NG.Market", "Привет из Москвы :)")
if err != nil {
t.Fatal(err)
}
t.Log(trID)
}
func TestStatus(t *testing.T) {
token := loadToken(t)
id, _ := uuid.Parse("9987bf00-c082-4dec-b25f-875eb528cf34")
status, err := RequestStatus(id, token)
if err != nil {
t.Fatal(err)
}
t.Log(status)
}