#include "protocolCraft/Utilities/Json.hpp"
#include <string>
#include <vector>
Go to the source code of this file.
|
| WebRequestResponse | Botcraft::POSTRequest (const std::string &host, const std::string &endpoint, const std::string &content_type, const std::string &accept, const std::string &authorization, const std::string &data) |
| | Send a POST request with ssl stuff.
|
| |
| WebRequestResponse | Botcraft::GETRequest (const std::string &host, const std::string &endpoint, const std::string &authorization="") |
| | Send a GET request with ssl stuff.
|
| |
| ProtocolCraft::Json::Value | Botcraft::CheckJsonResponse (const WebRequestResponse &response, const std::string &s, const std::vector< std::string > &fields, const unsigned int expected_status=200) |
| | Check that a WebRequestResponse has the right fields and return code, throw if not.
|
| |