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
31 : _endpoint{move(endpoint)}
◆ to_string()
string mastodonpp::API::to_string |
( |
| ) |
const |
Convert endpoint_type to string.
- Since
- 0.1.0
36 static const map<endpoint_type,string_view> endpoint_map
38 {v1::instance,
"/api/v1/instance"},
39 {v2::search,
"/api/v2/search"}
41 return endpoint_map.at(_endpoint).data();
The documentation for this class was generated from the following files: