aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-24 19:38:07 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-24 19:40:37 +0100
commit3e575ac920e87c47805eb2f0a603dfbbfcbc3e9e (patch)
tree6ea7a12e20ce1a0c749ef6d4931381a89d46fc96 /include
parent97e9fcb00af17d0fd1220ce2a5b4f264bf83e8cf (diff)
Start on mastodon/pleroma
Diffstat (limited to 'include')
-rw-r--r--include/Json.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/Json.hpp b/include/Json.hpp
new file mode 100644
index 0000000..ae84141
--- /dev/null
+++ b/include/Json.hpp
@@ -0,0 +1,9 @@
+#pragma once
+
+#include "DownloadUtils.hpp"
+#include <rapidjson/document.h>
+
+namespace QuickMedia {
+ const rapidjson::Value& GetMember(const rapidjson::Value &obj, const char *key);
+ DownloadResult download_json(rapidjson::Document &result, const std::string &url, std::vector<CommandArg> additional_args, bool use_tor, bool use_browser_useragent = true, std::string *err_msg = nullptr);
+} \ No newline at end of file