package main
import (
"bytes"
"fmt"
"net/http"
"net/url"
)
func main() {
data := url.Values{
"secret": {"API_SECRET"},
"account": {"ACCAOUNT_CODE"},
"recipient": {"+905012345678"},
"type": {"text"},
"message": {"Hello World!"},
}
resp, err := http.PostForm("https://forcemsg.com/api/send/whatsapp", data)
if err != nil {
fmt.Println(err)
return
}
defer resp.Body.Close()
buf := new(bytes.Buffer)
buf.ReadFrom(resp.Body)
fmt.Println(buf.String())
}