package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
payload, _ := json.Marshal(map[string]string{
"to": "+258841234567",
"body": "Your verification code is 482910. Expires in 10 minutes.",
})
req, _ := http.NewRequest("POST", "https://api.torpedo.co.mz/api/v1/sms", bytes.NewBuffer(payload))
req.Header.Set("X-API-Key", os.Getenv("TORPEDO_API_KEY"))
req.Header.Set("Content-Type", "application/json")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
fmt.Println(resp.Status)
}