package main

import (
	"bytes"
	"fmt"
	"net/http"
)

func main() {
	url := "https://app.yellikasms.com/api/v3/sms/send"
	payload := []byte(`{"recipient": "225++++++", "sender_id": "XXX-SENDER-ID-ICI-XXX", "type": "plain", "message": "MESSAGE-ICI"}`)

	req, _ := http.NewRequest("POST", url, bytes.NewBuffer(payload))

	req.Header.Add("Accept", "application/json")
	req.Header.Add("Authorization", "Bearer XXXX-VOTRE-TOKEN--ICI-XXXX")
	req.Header.Add("Content-Type", "application/json")

	client := &http.Client{}
	res, err := client.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	fmt.Println("Response Status:", res.Status)
}