From 4acab9da5c39ba757ff213203cf45aae9b06b5df Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 4 Jan 2020 11:38:58 +0100 Subject: Add Request::get() (without real function for now). --- include/request.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/request.hpp') 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; }; -- cgit v1.2.3-54-g00ecf