mastodonpp
0.5.7
C++ wrapper for the Mastodon and Pleroma APIs.
|
Include mastodonpp.hpp, which then includes all other headers.
Use it in your CMake project like this:
Or compile your code with g++ $(pkg-config --cflags --libs mastodonpp)
.
Since we use C++17 features in the headers of this library, your program needs to be compiled as C++17 or higher too.
@file:
” followed by the file name as value in the parametermap.Any unrecoverable libcurl error will be thrown as a mastodonpp::CURLException. Network errors will not be thrown, but reported via the return value.
The first time you construct an Instance, curl_global_init(3) is called. When the last Instance is destroyed, curl_global_cleanup(3) is called. Both are not thread safe.
Do not make 2 requests with the same Connection at the same time. You can create as many Connections as you want from one Instance.
If you are using libcurl with OpenSSL before 1.1.0, please read libcurl-thread(3).