#include <stdio.h>
#include <curl/curl.h>

int main(void) {
    CURL *curl;
    CURLcode res;

    curl_global_init(CURL_GLOBAL_DEFAULT);

    curl = curl_easy_init();
    if(curl) {
        struct curl_slist *headers = NULL;
        headers = curl_slist_append(headers, "Accept: application/json");
        headers = curl_slist_append(headers, "Authorization: Bearer XXXX-VOTRE-TOKEN--ICI-XXXX");
        headers = curl_slist_append(headers, "Content-Type: application/json");

        curl_easy_setopt(curl, CURLOPT_URL, "https://app.yellikasms.com/api/v3/sms/send");
        curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);

        const char *data = "{\"recipient\":\"225++++++\",\"sender_id\":\"XXX-SENDER-ID-ICI-XXX\",\"type\":\"plain\",\"message\":\"MESSAGE-ICI\"}";
        curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data);

        res = curl_easy_perform(curl);

        if(res != CURLE_OK)
            fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(res));

        curl_easy_cleanup(curl);
        curl_slist_free_all(headers);
    }

    curl_global_cleanup();
    return 0;
}