17 #ifndef MASTODONPP_INSTANCE_HPP
18 #define MASTODONPP_INSTANCE_HPP
20 #include "curl_wrapper.hpp"
24 #include <string_view>
31 using std::string_view;
53 explicit Instance(
const string_view &hostname,
54 const string_view &access_token);
100 const string _hostname;
101 const string _baseuri;
102 string _access_token;
108 #endif // MASTODONPP_INSTANCE_HPP
string_view get_access_token() const
Returns the access token.
Definition: instance.hpp:86
C++ wrapper for the Mastodon API.
Definition: api.cpp:19
uint64_t get_max_chars()
Returns the maximum number of characters per post.
Definition: instance.cpp:33
string_view get_baseuri() const
Returns the base URI.
Definition: instance.hpp:75
Holds the access data of an instance.
Definition: instance.hpp:40
Instance(const string_view &hostname, const string_view &access_token)
Construct a new Instance object.
Definition: instance.cpp:26
Handles the details of network connections.
Definition: curl_wrapper.hpp:56
string_view get_hostname() const
Returns the hostname.
Definition: instance.hpp:62