summaryrefslogtreecommitdiffstats
path: root/include/request.hpp
diff options
context:
space:
mode:
authortastytea2020-01-04 11:38:58 +0100
committertastytea2020-01-04 11:38:58 +0100
commit4acab9da5c39ba757ff213203cf45aae9b06b5df (patch)
treef20134f85584789bc0810f6947a473d8af7deeb6 /include/request.hpp
parente6690c85b44a98f759587cc70030e401ff16a0a8 (diff)
downloadmastodonpp-4acab9da5c39ba757ff213203cf45aae9b06b5df.tar
mastodonpp-4acab9da5c39ba757ff213203cf45aae9b06b5df.tar.gz
mastodonpp-4acab9da5c39ba757ff213203cf45aae9b06b5df.zip
Add Request::get() (without real function for now).
Diffstat (limited to 'include/request.hpp')
-rw-r--r--include/request.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/request.hpp b/include/request.hpp
index f1bc6ec..198e5a8 100644
--- a/include/request.hpp
+++ b/include/request.hpp
@@ -17,11 +17,17 @@
#ifndef MASTODONPP_REQUEST_HPP
#define MASTODONPP_REQUEST_HPP
+#include "api.hpp"
#include "instance.hpp"
+#include "return_types.hpp"
+
+#include <string>
namespace mastodonpp
{
+using std::string;
+
/*!
* @brief Used to make a request to the Mastodon API.
*
@@ -39,6 +45,13 @@ public:
*/
explicit Request(Instance &instance);
+ /*!
+ * @brief Make a HTTP GET call.
+ *
+ * @since 0.1.0
+ */
+ answer_type get(API::endpoint_type endpoint) const;
+
private:
Instance &_instance;
};