mastodonpp
0.0.0
|
Used to make a request to the Mastodon API. More...
#include <mastodonpp/request.hpp>
Public Member Functions | |
Request (Instance &instance) | |
Construct a new Request object. More... | |
answer_type | get (API::endpoint_type endpoint) const |
Make a HTTP GET call. More... | |
answer_type | get (string endpoint) const |
Make a HTTP GET call. More... | |
Public Member Functions inherited from mastodonpp::CURLWrapper | |
CURLWrapper () | |
Initializes curl and sets up connection. More... | |
CURLWrapper (const CURLWrapper &other)=default | |
Copy constructor. More... | |
CURLWrapper (CURLWrapper &&other) noexcept=default | |
Move constructor. More... | |
virtual | ~CURLWrapper () noexcept |
Cleans up curl and connection. More... | |
CURLWrapper & | operator= (const CURLWrapper &other)=default |
Copy assignment operator. More... | |
CURLWrapper & | operator= (CURLWrapper &&other) noexcept=default |
Move assignment operator. More... | |
Used to make a request to the Mastodon API.
|
explicit |
answer_type mastodonpp::Request::get | ( | API::endpoint_type | endpoint | ) | const |
Make a HTTP GET call.
endpoint | Endpoint as API::endpoint_type, for example: mastodonpp::API::v1::instance . |
answer_type mastodonpp::Request::get | ( | string | endpoint | ) | const |