- I gladly answer your questions on the discord server.
#include "webhook.hpp"
int main()
{
curl_global_init(CURL_GLOBAL_ALL);
struct discord_webhook webhook;
webhook.avatar = "AVATAR_URL";
webhook.name = "USERNAME";
webhook.url = "URL";
webhook.message = "MESSAGE";
std::string response;
if (send_webhook(webhook, response)) {
printf("Webhook successfully sent %zu length of data.\n", webhook.message.length());
}
curl_global_cleanup();
}
- Below Windows 7 - 🟦 Untested
- Windows 7 - 🟦 Untested
- Windows 10 - 🟩 Working
- Windows 11 - 🟦 Untested
- Mac OS - 🟦 Untested
- Linux - 🟦 Untested
You need to have the OpenSSL library installed and linked to your compiler.
- You could download the OpenSSL library from OpenSSL website.
You need to have the CURL library installed and linked to your compiler ( _ STATIC _).
- You could download the CURL library from CURL website.
- libcrypto.lib
- libssl.lib
- openssl.lib
- libcurl_a.lib
- crypt32.lib
- ws2_32.lib
- wldap32.lib
- normaliz.lib
- Build - 🟦 Untested
- Release - 🟩 Working
- C++11 - 🟦 Untested
- C++14 - 🟩 Working
- C++17 - 🟩 Working
- C++20 - 🟩 Working
Pull requests are welcome.
🟥 The content provided is for educational and informational purposes only. 🟥