did i say simpler? i'm not sure if this is more or less simple...but it is secure and operates how we need... @apathy audit please?

This commit is contained in:
DarthArgus
2016-08-05 01:09:25 +00:00
parent 46e985f72a
commit a9fa196e5f
4 changed files with 27 additions and 14 deletions
+8 -1
View File
@@ -26,9 +26,16 @@ License: what's a license? we're a bunch of dirty pirates!
namespace webAPI
{
struct statusMessage
{
bool status;
std::string message;
};
using namespace std;
string simplePost(const string &endpoint, const string &data, const string &slotName, const string &messageSlot);
statusMessage simplePost(const string &endpoint, const string &data, const string &slotName, const string &messageSlot, const string &statusSlot, const string &statusVal);
nlohmann::json request(const string &endpoint, const string &data, const int &reqType); // 1 for post, 0 for get
size_t writeCallback(void *contents, size_t size, size_t nmemb, void *userp);
};