17 #ifndef MASTODONPP_API_HPP
18 #define MASTODONPP_API_HPP
21 #include <string_view>
28 using std::string_view;
53 apps_verify_credentials,
56 accounts_verify_credentials,
57 accounts_update_credentials,
60 accounts_id_followers,
61 accounts_id_following,
63 accounts_id_identity_proofs,
72 accounts_relationships,
91 follow_requests_id_authorize,
92 follow_requests_id_reject,
98 featured_tags_suggestions,
103 suggestions_account_id,
108 statuses_id_reblogged_by,
109 statuses_id_favourited_by,
110 statuses_id_favourite,
111 statuses_id_unfavourite,
113 statuses_id_unreblog,
114 statuses_id_bookmark,
115 statuses_id_unbookmark,
128 scheduled_statuses_id,
131 timelines_tag_hashtag,
133 timelines_list_list_id,
137 conversations_id_read,
148 streaming_public_local,
150 streaming_hashtag_local,
157 notifications_id_dismiss,
173 admin_accounts_account_id_action,
174 admin_accounts_id_approve,
175 admin_accounts_id_reject,
176 admin_accounts_id_enable,
177 admin_accounts_id_unsilence,
178 admin_accounts_id_unsuspend,
181 admin_reports_id_assign_to_self,
182 admin_reports_id_unassign,
183 admin_reports_id_resolve,
184 admin_reports_id_reopen,
186 pleroma_notifications_read,
187 pleroma_accounts_id_subscribe,
188 pleroma_accounts_id_unsubscribe,
189 pleroma_accounts_id_favourites,
190 pleroma_accounts_update_avatar,
191 pleroma_accounts_update_banner,
192 pleroma_accounts_update_background,
193 pleroma_accounts_confirmation_resend,
195 pleroma_conversations_id_statuses,
196 pleroma_conversations_id,
197 pleroma_conversations_id_read,
198 pleroma_accounts_id_scrobbles,
200 pleroma_statuses_id_reactions_emoji,
201 pleroma_statuses_id_reactions,
256 admin_users_unfollow,
257 admin_users_nickname_toggle_activation,
259 admin_users_nickname_permission_group,
260 admin_users_nickname_permission_group_permission_group,
261 admin_users_permission_group_permission_group,
262 admin_users_activate,
263 admin_users_deactivate,
264 admin_users_nickname_or_id,
265 admin_users_nickname_or_id_statuses,
266 admin_instances_instance_statuses,
269 admin_users_invite_token,
271 admin_users_revoke_invite,
272 admin_users_email_invite,
273 admin_users_nickname_password_reset,
274 admin_users_nickname_update_credentials,
275 admin_users_force_password_reset,
277 admin_grouped_reports,
279 admin_reports_id_notes,
280 admin_reports_report_id_notes_id,
284 admin_config_descriptions,
285 admin_moderation_log,
287 admin_users_confirm_email,
288 admin_users_resend_confirm_email,
292 admin_users_nickname,
293 admin_users_nickname_activation_status,
294 admin_reports_id_respond,
295 admin_config_migrate_to_db,
296 admin_config_migrate_from_db,
303 notification_settings,
308 emoji_packs_name_update_file,
309 emoji_packs_name_update_metadata,
310 emoji_packs_download_from,
311 emoji_packs_list_from,
312 emoji_packs_name_download_shared,
344 return _endpoint_map.at(_endpoint);
349 static const map<endpoint_type, string_view> _endpoint_map;
Holds API endpoints.
Definition: api.hpp:41
pleroma
An enumeration of all pleroma API endpoints.
Definition: api.hpp:253
oauth
An enumeration of all oauth API endpoints.
Definition: api.hpp:224
v2
An enumeration of all v2 API endpoints.
Definition: api.hpp:212
variant< v1, v2, oauth, other, pleroma > endpoint_type
Type for endpoints. Can be API::v1, API::v2, API::oauth, API::other or API::pleroma.
Definition: api.hpp:325
string_view to_string_view() const
Convert endpoint_type to std::string_view.
Definition: api.hpp:342
other
An enumeration of all other API endpoints.
Definition: api.hpp:240
v1
An enumeration of all v1 API endpoints.
Definition: api.hpp:51
API(const endpoint_type &endpoint)
Constructs an API object. You should never need this.
Definition: api.cpp:22
C++ wrapper for the Mastodon API.
Definition: api.hpp:25