17 #ifndef MASTODONPP_API_HPP
18 #define MASTODONPP_API_HPP
21 #include <string_view>
27 using std::string_view;
95 #endif // MASTODONPP_API_HPP
v2
An enumeration of all v2 API endpoints.
Definition: api.hpp:59
string_view to_string_view() const
Convert endpoint_type to std::string_view.
Definition: api.cpp:31
C++ wrapper for the Mastodon API.
Definition: api.cpp:21
Holds API endpoints.
Definition: api.hpp:37
v1
An enumeration of all v1 API endpoints.
Definition: api.hpp:47
API(const endpoint_type &endpoint)
Constructs an API object. You should never need this.
Definition: api.cpp:27
variant< v1, v2 > endpoint_type
Type for endpoints. Either API::v1 or API::v2.
Definition: api.hpp:69