flash call
This commit is contained in:
6
sms.go
6
sms.go
@@ -23,11 +23,6 @@ var (
|
||||
TypeSMS = "sms"
|
||||
)
|
||||
|
||||
type Payload struct {
|
||||
Sender string `json:"sender"`
|
||||
Text string `json:"text"`
|
||||
}
|
||||
|
||||
type SendSMSResponse struct {
|
||||
Error string `json:"error"`
|
||||
ID uuid.UUID `json:"id"`
|
||||
@@ -84,7 +79,6 @@ func SendSMSWait(apiKey, phone, sender, text string) (transactionID uuid.UUID, e
|
||||
for resp.Status == "pending" {
|
||||
time.Sleep(time.Millisecond * 100)
|
||||
sResp, err = RequestStatus(resp.ID, apiKey)
|
||||
log.Println(sResp.State.Status, err)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user