flash call

This commit is contained in:
2025-12-03 19:45:24 +03:00
parent 85cbc3e940
commit 1bc08c90bd
5 changed files with 122 additions and 84 deletions

View File

@@ -18,7 +18,20 @@ func loadToken(t *testing.T) string {
func TestFlashCall(t *testing.T) {
token := loadToken(t)
log.Println(token)
code, _ := GenerateFreshcCallCode()
log.Println(code)
FlashCall(token, "+79857770038", "NG.Market", code)
}
func TestFlashCallWait(t *testing.T) {
token := loadToken(t)
code, _ := GenerateFreshcCallCode()
log.Println(code)
trID, err := FlashCallWait(token, "+79857770038", "NG.Market", code)
if err != nil {
t.Fatal(err)
}
t.Log(trID)
}
func TestSMS(t *testing.T) {
@@ -42,10 +55,18 @@ func TestSMSWait(t *testing.T) {
func TestStatus(t *testing.T) {
token := loadToken(t)
id, _ := uuid.Parse("9987bf00-c082-4dec-b25f-875eb528cf34")
id, _ := uuid.Parse("518095e8-a62d-4af1-ad1f-2a56e955cf55")
status, err := RequestStatus(id, token)
if err != nil {
t.Fatal(err)
}
t.Log(status)
}
func TestFreshCallCode(t *testing.T) {
code, err := GenerateFreshcCallCode()
if err != nil {
t.Fatal(err)
}
t.Log(code)
}