Holds API endpoints.
More...
#include <mastodonpp/api.hpp>
Holds API endpoints.
- Since
- 0.1.0
◆ endpoint_type
◆ v1
An enumeration of all v1 API endpoints.
The original /
are substituted with _
.
- Since
- 0.1.0
◆ v2
An enumeration of all v2 API endpoints.
The original /
are substituted with _
.
- Since
- 0.1.0
◆ API()
Constructs an API object. You should never need this.
This constructor exists to hide away the class members, which are used internally.
- Since
- 0.1.0
◆ to_string_view()
string_view mastodonpp::API::to_string_view |
( |
| ) |
const |
Convert endpoint_type to std::string_view
.
- Since
- 0.1.0
33 static const map<endpoint_type,string_view> endpoint_map
35 {v1::instance,
"/api/v1/instance"},
36 {v2::search,
"/api/v2/search"}
38 return endpoint_map.at(_endpoint).data();
The documentation for this class was generated from the following files: