mastodonpp
0.1.0
|
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)
.
All text input is expected to be UTF-8.
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 or Connection , curl_global_init(3) is called. When the last Instance or Connection 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).