Toast/TriviaBot/bot/APIHelper.hpp
Jack db3ab59daf Better compliance with API reference
Send User-Agent header, move token auth to Authorization header.
https://discordapp.com/developers/docs/reference
2016-07-20 22:57:47 +01:00

26 lines
378 B
C++

#ifndef BOT_APIHELPER
#define BOT_APIHELPER
#include <string>
#include "json/json.hpp"
using json = nlohmann::json;
class HTTPHelper;
class APIHelper {
public:
APIHelper();
void send_message(std::string channel_id, std::string message);
private:
const std::string BASE_URL;
const std::string CHANNELS_URL;
const std::string JSON_CTYPE;
HTTPHelper *http;
};
#endif