2020-01-20
This commit is contained in:
parent
aceae36fef
commit
fd0a9ceb7c
|
@ -77,7 +77,7 @@ $(function() {
|
|||
<p>Simplifies obtaining an OAuth 2.0 Bearer Access Token.
|
||||
<a href="classmastodonpp_1_1Instance_1_1ObtainToken.html#details">More...</a></p>
|
||||
|
||||
<p><code>#include <<a class="el" href="instance_8hpp_source.html">instance.hpp</a>></code></p>
|
||||
<p><code>#include <<a class="el" href="instance_8hpp_source.html">mastodonpp/instance.hpp</a>></code></p>
|
||||
<div class="dynheader">
|
||||
Inheritance diagram for mastodonpp::Instance::ObtainToken:</div>
|
||||
<div class="dyncontent">
|
||||
|
@ -210,11 +210,11 @@ Additional Inherited Members</h2></td></tr>
|
|||
|
||||
<p>Constructor. </p>
|
||||
<dl class="section since"><dt>Since</dt><dd>0.3.0 </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  : _instance{instance}</div>
|
||||
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  , _baseuri{instance.get_baseuri()}</div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  {</div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  _instance.<a class="code" href="classmastodonpp_1_1Instance.html#aa486bc453907439e33f8402f270ef384">copy_connection_properties</a>(*<span class="keyword">this</span>);</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  }</div>
|
||||
<div class="fragment"><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  : _instance{instance}</div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  , _baseuri{instance.get_baseuri()}</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  {</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  _instance.<a class="code" href="classmastodonpp_1_1Instance.html#aa486bc453907439e33f8402f270ef384">copy_connection_properties</a>(*<span class="keyword">this</span>);</div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  }</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
|
@ -300,7 +300,7 @@ Additional Inherited Members</h2></td></tr>
|
|||
<li>include/<a class="el" href="instance_8hpp_source.html">instance.hpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html">mastodonpp::Instance::ObtainToken</a></div><div class="ttdoc">Simplifies obtaining an OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> instance.hpp:234</div></div>
|
||||
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html">mastodonpp::Instance::ObtainToken</a></div><div class="ttdoc">Simplifies obtaining an OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> instance.hpp:236</div></div>
|
||||
<div class="ttc" id="aclassmastodonpp_1_1Instance_html"><div class="ttname"><a href="classmastodonpp_1_1Instance.html">mastodonpp::Instance</a></div><div class="ttdoc">Holds the access data of an instance.</div><div class="ttdef"><b>Definition:</b> instance.hpp:45</div></div>
|
||||
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_aa486bc453907439e33f8402f270ef384"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#aa486bc453907439e33f8402f270ef384">mastodonpp::Instance::copy_connection_properties</a></div><div class="ttdeci">void copy_connection_properties(CURLWrapper &curlwrapper)</div><div class="ttdoc">Set the properties of the connection of the calling class up.</div><div class="ttdef"><b>Definition:</b> instance.hpp:74</div></div>
|
||||
<!-- start footer part -->
|
||||
|
|
|
@ -173,47 +173,47 @@ $(function() {
|
|||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <a class="code" href="classmastodonpp_1_1CURLWrapper.html#ae3b1445f9b94b1f7677d3cac6d538612">CURLWrapper::set_useragent</a>(useragent);</div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  }</div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  </div>
|
||||
<div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance_1_1ObtainToken.html"> 234</a></span>  <span class="keyword">class </span><a class="code" href="classmastodonpp_1_1Instance_1_1ObtainToken.html">ObtainToken</a> : <span class="keyword">public</span> <a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a></div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  {</div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance_1_1ObtainToken.html#aa834d9be223856e5711b0e14d9b92eed"> 242</a></span>  <span class="keyword">explicit</span> <a class="code" href="classmastodonpp_1_1Instance_1_1ObtainToken.html#aa834d9be223856e5711b0e14d9b92eed">ObtainToken</a>(<a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &instance)</div>
|
||||
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  : _instance{instance}</div>
|
||||
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  , _baseuri{instance.<a class="code" href="classmastodonpp_1_1Instance.html#a859540ec79ea97c0f76185d9036127bb">get_baseuri</a>()}</div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  {</div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  _instance.<a class="code" href="classmastodonpp_1_1Instance.html#aa486bc453907439e33f8402f270ef384">copy_connection_properties</a>(*<span class="keyword">this</span>);</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  }</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  </div>
|
||||
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  [[nodiscard]]</div>
|
||||
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  answer_type <a class="code" href="classmastodonpp_1_1Instance_1_1ObtainToken.html#a5bd5d631e2fbb186a9df66d2ac3f5402">step_1</a>(string_view client_name, string_view scopes,</div>
|
||||
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  string_view website);</div>
|
||||
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  </div>
|
||||
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  [[nodiscard]]</div>
|
||||
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  answer_type <a class="code" href="classmastodonpp_1_1Instance_1_1ObtainToken.html#addda7f4e1ca4200235764707478f6d51">step_2</a>(string_view code);</div>
|
||||
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  </div>
|
||||
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <a class="code" href="classmastodonpp_1_1Instance.html#a04dc593589b69f9f71c4acecb39d995a">Instance</a> &_instance;</div>
|
||||
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keyword">const</span> <span class="keywordtype">string</span> _baseuri;</div>
|
||||
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keywordtype">string</span> _scopes;</div>
|
||||
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keywordtype">string</span> _client_id;</div>
|
||||
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keywordtype">string</span> _client_secret;</div>
|
||||
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  };</div>
|
||||
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  </div>
|
||||
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="keyword">const</span> <span class="keywordtype">string</span> _hostname;</div>
|
||||
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keyword">const</span> <span class="keywordtype">string</span> _baseuri;</div>
|
||||
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keywordtype">string</span> _access_token;</div>
|
||||
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  uint64_t _max_chars;</div>
|
||||
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="keywordtype">string</span> _proxy;</div>
|
||||
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  vector<string> _post_formats;</div>
|
||||
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keywordtype">string</span> _cainfo;</div>
|
||||
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <span class="keywordtype">string</span> _useragent;</div>
|
||||
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> };</div>
|
||||
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  </div>
|
||||
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> } <span class="comment">// namespace mastodonpp</span></div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance_1_1ObtainToken.html"> 236</a></span>  <span class="keyword">class </span><a class="code" href="classmastodonpp_1_1Instance_1_1ObtainToken.html">ObtainToken</a> : <span class="keyword">public</span> <a class="code" href="classmastodonpp_1_1CURLWrapper.html">CURLWrapper</a></div>
|
||||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  {</div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="classmastodonpp_1_1Instance_1_1ObtainToken.html#aa834d9be223856e5711b0e14d9b92eed"> 244</a></span>  <span class="keyword">explicit</span> <a class="code" href="classmastodonpp_1_1Instance_1_1ObtainToken.html#aa834d9be223856e5711b0e14d9b92eed">ObtainToken</a>(<a class="code" href="classmastodonpp_1_1Instance.html">Instance</a> &instance)</div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  : _instance{instance}</div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  , _baseuri{instance.<a class="code" href="classmastodonpp_1_1Instance.html#a859540ec79ea97c0f76185d9036127bb">get_baseuri</a>()}</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  {</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  _instance.<a class="code" href="classmastodonpp_1_1Instance.html#aa486bc453907439e33f8402f270ef384">copy_connection_properties</a>(*<span class="keyword">this</span>);</div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  }</div>
|
||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  </div>
|
||||
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  [[nodiscard]]</div>
|
||||
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  answer_type <a class="code" href="classmastodonpp_1_1Instance_1_1ObtainToken.html#a5bd5d631e2fbb186a9df66d2ac3f5402">step_1</a>(string_view client_name, string_view scopes,</div>
|
||||
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  string_view website);</div>
|
||||
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  </div>
|
||||
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  [[nodiscard]]</div>
|
||||
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  answer_type <a class="code" href="classmastodonpp_1_1Instance_1_1ObtainToken.html#addda7f4e1ca4200235764707478f6d51">step_2</a>(string_view code);</div>
|
||||
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  </div>
|
||||
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <a class="code" href="classmastodonpp_1_1Instance.html#a04dc593589b69f9f71c4acecb39d995a">Instance</a> &_instance;</div>
|
||||
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keyword">const</span> <span class="keywordtype">string</span> _baseuri;</div>
|
||||
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keywordtype">string</span> _scopes;</div>
|
||||
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keywordtype">string</span> _client_id;</div>
|
||||
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="keywordtype">string</span> _client_secret;</div>
|
||||
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  };</div>
|
||||
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  </div>
|
||||
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keyword">const</span> <span class="keywordtype">string</span> _hostname;</div>
|
||||
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="keyword">const</span> <span class="keywordtype">string</span> _baseuri;</div>
|
||||
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="keywordtype">string</span> _access_token;</div>
|
||||
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  uint64_t _max_chars;</div>
|
||||
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keywordtype">string</span> _proxy;</div>
|
||||
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  vector<string> _post_formats;</div>
|
||||
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="keywordtype">string</span> _cainfo;</div>
|
||||
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keywordtype">string</span> _useragent;</div>
|
||||
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> };</div>
|
||||
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  </div>
|
||||
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span> <span class="preprocessor">#endif // MASTODONPP_INSTANCE_HPP</span></div>
|
||||
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span> } <span class="comment">// namespace mastodonpp</span></div>
|
||||
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  </div>
|
||||
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <span class="preprocessor">#endif // MASTODONPP_INSTANCE_HPP</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html">mastodonpp::Instance::ObtainToken</a></div><div class="ttdoc">Simplifies obtaining an OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> instance.hpp:234</div></div>
|
||||
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html">mastodonpp::Instance::ObtainToken</a></div><div class="ttdoc">Simplifies obtaining an OAuth 2.0 Bearer Access Token.</div><div class="ttdef"><b>Definition:</b> instance.hpp:236</div></div>
|
||||
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a4d594e1365584a05e5a16fc8aea76e9d"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a4d594e1365584a05e5a16fc8aea76e9d">mastodonpp::Instance::get_nodeinfo</a></div><div class="ttdeci">answer_type get_nodeinfo()</div><div class="ttdoc">Returns the NodeInfo of the instance.</div></div>
|
||||
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_a868aae1fae3ad4060759c1325acb3b62"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#a868aae1fae3ad4060759c1325acb3b62">mastodonpp::Instance::get_hostname</a></div><div class="ttdeci">string_view get_hostname() const noexcept</div><div class="ttdoc">Returns the hostname.</div><div class="ttdef"><b>Definition:</b> instance.hpp:86</div></div>
|
||||
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html_a5bd5d631e2fbb186a9df66d2ac3f5402"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html#a5bd5d631e2fbb186a9df66d2ac3f5402">mastodonpp::Instance::ObtainToken::step_1</a></div><div class="ttdeci">answer_type step_1(string_view client_name, string_view scopes, string_view website)</div><div class="ttdoc">Creates an application via /api/v1/apps.</div></div>
|
||||
|
@ -231,7 +231,7 @@ $(function() {
|
|||
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_af3f2bd4dea7c289d590fe19889360444"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#af3f2bd4dea7c289d590fe19889360444">mastodonpp::CURLWrapper::set_cainfo</a></div><div class="ttdeci">void set_cainfo(string_view path)</div><div class="ttdoc">Set path to Certificate Authority (CA) bundle.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:253</div></div>
|
||||
<div class="ttc" id="aclassmastodonpp_1_1Instance_html"><div class="ttname"><a href="classmastodonpp_1_1Instance.html">mastodonpp::Instance</a></div><div class="ttdoc">Holds the access data of an instance.</div><div class="ttdef"><b>Definition:</b> instance.hpp:45</div></div>
|
||||
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html_ae3b1445f9b94b1f7677d3cac6d538612"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html#ae3b1445f9b94b1f7677d3cac6d538612">mastodonpp::CURLWrapper::set_useragent</a></div><div class="ttdeci">void set_useragent(string_view useragent)</div><div class="ttdoc">Sets the User-Agent.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.cpp:263</div></div>
|
||||
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html_aa834d9be223856e5711b0e14d9b92eed"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html#aa834d9be223856e5711b0e14d9b92eed">mastodonpp::Instance::ObtainToken::ObtainToken</a></div><div class="ttdeci">ObtainToken(Instance &instance)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> instance.hpp:242</div></div>
|
||||
<div class="ttc" id="aclassmastodonpp_1_1Instance_1_1ObtainToken_html_aa834d9be223856e5711b0e14d9b92eed"><div class="ttname"><a href="classmastodonpp_1_1Instance_1_1ObtainToken.html#aa834d9be223856e5711b0e14d9b92eed">mastodonpp::Instance::ObtainToken::ObtainToken</a></div><div class="ttdeci">ObtainToken(Instance &instance)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> instance.hpp:244</div></div>
|
||||
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_af75272092047c8af95cef8dfb3969dfa"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#af75272092047c8af95cef8dfb3969dfa">mastodonpp::Instance::set_cainfo</a></div><div class="ttdeci">void set_cainfo(string_view path)</div><div class="ttdoc">Set path to Certificate Authority (CA) bundle.</div><div class="ttdef"><b>Definition:</b> instance.hpp:186</div></div>
|
||||
<div class="ttc" id="aclassmastodonpp_1_1CURLWrapper_html"><div class="ttname"><a href="classmastodonpp_1_1CURLWrapper.html">mastodonpp::CURLWrapper</a></div><div class="ttdoc">Handles the details of network connections.</div><div class="ttdef"><b>Definition:</b> curl_wrapper.hpp:58</div></div>
|
||||
<div class="ttc" id="aclassmastodonpp_1_1Instance_html_aa486bc453907439e33f8402f270ef384"><div class="ttname"><a href="classmastodonpp_1_1Instance.html#aa486bc453907439e33f8402f270ef384">mastodonpp::Instance::copy_connection_properties</a></div><div class="ttdeci">void copy_connection_properties(CURLWrapper &curlwrapper)</div><div class="ttdoc">Set the properties of the connection of the calling class up.</div><div class="ttdef"><b>Definition:</b> instance.hpp:74</div></div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user