<li>To send a file, use “<code>@file:</code>” followed by the file name as value in the <aclass="el"href="namespacemastodonpp.html#af8b3b89118adeccc71c54dfd36c987f6">parametermap</a>.</li>
<p>Any unrecoverable libcurl error will be thrown as a <aclass="el"href="classmastodonpp_1_1CURLException.html"title="Exception for libcurl errors.">mastodonpp::CURLException</a>. Network errors will not be thrown, but reported via the return value.</p>
<p>The first time you construct an <aclass="el"href="classmastodonpp_1_1Instance.html">Instance </a> or <aclass="el"href="classmastodonpp_1_1Connection.html">Connection </a>, <ahref="https://curl.haxx.se/libcurl/c/curl_global_init.html">curl_global_init(3)</a> is called. When the last <aclass="el"href="classmastodonpp_1_1Instance.html">Instance </a> or <aclass="el"href="classmastodonpp_1_1Connection.html">Connection </a> is destroyed, <ahref="https://curl.haxx.se/libcurl/c/curl_global_cleanup.html">curl_global_cleanup(3)</a> is called. Both are not thread safe.</p>
<p>Do not make 2 requests with the same <aclass="el"href="classmastodonpp_1_1Connection.html">Connection </a> at the same time. You can create as many <aclass="el"href="classmastodonpp_1_1Connection.html">Connection</a>s as you want from one <aclass="el"href="classmastodonpp_1_1Instance.html">Instance</a>.</p>
<p>If you are using libcurl with OpenSSL before 1.1.0, please read <ahref="https://curl.haxx.se/libcurl/c/threadsafe.html">libcurl-thread(3)</a>. </p>
<divclass="ttc"id="aclassmastodonpp_1_1Connection_html_ade24a99769313ee15c406d97e9543cba"><divclass="ttname"><ahref="classmastodonpp_1_1Connection.html#ade24a99769313ee15c406d97e9543cba">mastodonpp::Connection::get</a></div><divclass="ttdeci">answer_type get(const endpoint_variant &endpoint, const parametermap &parameters)</div><divclass="ttdoc">Make a HTTP GET call with parameters.</div><divclass="ttdef"><b>Definition:</b> connection.cpp:34</div></div>
<divclass="ttc"id="anamespacemastodonpp_html"><divclass="ttname"><ahref="namespacemastodonpp.html">mastodonpp</a></div><divclass="ttdoc">C++ wrapper for the Mastodon API.</div><divclass="ttdef"><b>Definition:</b> api.cpp:19</div></div>
<divclass="ttc"id="aclassmastodonpp_1_1Instance_html_a3d9f535570e6083b7f37b3c5e42c08dd"><divclass="ttname"><ahref="classmastodonpp_1_1Instance.html#a3d9f535570e6083b7f37b3c5e42c08dd">mastodonpp::Instance::get_max_chars</a></div><divclass="ttdeci">uint64_t get_max_chars() noexcept</div><divclass="ttdoc">Returns the maximum number of characters per post.</div></div>
<divclass="ttc"id="aclassmastodonpp_1_1Instance_html"><divclass="ttname"><ahref="classmastodonpp_1_1Instance.html">mastodonpp::Instance</a></div><divclass="ttdoc">Holds the access data of an instance.</div><divclass="ttdef"><b>Definition:</b> instance.hpp:45</div></div>
<divclass="ttc"id="aclassmastodonpp_1_1Connection_html"><divclass="ttname"><ahref="classmastodonpp_1_1Connection.html">mastodonpp::Connection</a></div><divclass="ttdoc">Represents a connection to an instance. Used for requests.</div><divclass="ttdef"><b>Definition:</b> connection.hpp:75</div></div>