2020-01-03 12:47:36 +01:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
< meta name = "generator" content = "Doxygen 1.8.16" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > mastodonpp: mastodonpp::Request Class Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td id = "projectalign" style = "padding-left: 0.5em;" >
< div id = "projectname" > mastodonpp
  < span id = "projectnumber" > 0.0.0< / span >
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
< / script >
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */< / script >
< div id = "main-nav" > < / div >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div id = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < a class = "el" href = "namespacemastodonpp.html" > mastodonpp< / a > < / li > < li class = "navelem" > < a class = "el" href = "classmastodonpp_1_1Request.html" > Request< / a > < / li > < / ul >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classmastodonpp_1_1Request-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > mastodonpp::Request Class Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
2020-01-04 11:40:17 +01:00
< p > Used to make a request to the Mastodon < a class = "el" href = "classmastodonpp_1_1API.html" title = "Holds API endpoints." > API< / a > .
< a href = "classmastodonpp_1_1Request.html#details" > More...< / a > < / p >
< p > < code > #include < < a class = "el" href = "request_8hpp_source.html" > request.hpp< / a > > < / code > < / p >
2020-01-03 12:47:36 +01:00
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
2020-01-04 11:40:17 +01:00
< tr class = "memitem:ab79b1b1c9172b6bd6aebd212f31d9a85" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classmastodonpp_1_1Request.html#ab79b1b1c9172b6bd6aebd212f31d9a85" > Request< / a > (< a class = "el" href = "classmastodonpp_1_1Instance.html" > Instance< / a > & instance)< / td > < / tr >
< tr class = "memdesc:ab79b1b1c9172b6bd6aebd212f31d9a85" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Construct a new < a class = "el" href = "classmastodonpp_1_1Request.html" title = "Used to make a request to the Mastodon API." > Request< / a > object. < a href = "classmastodonpp_1_1Request.html#ab79b1b1c9172b6bd6aebd212f31d9a85" > More...< / a > < br / > < / td > < / tr >
2020-01-03 12:47:36 +01:00
< tr class = "separator:ab79b1b1c9172b6bd6aebd212f31d9a85" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-01-04 11:40:17 +01:00
< tr class = "memitem:abf980d36a6ccb5eadee1cd9ef80baf0d" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "structmastodonpp_1_1answer__type.html" > answer_type< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classmastodonpp_1_1Request.html#abf980d36a6ccb5eadee1cd9ef80baf0d" > get< / a > (< a class = "el" href = "classmastodonpp_1_1API.html#afab8f6d794dbe28dde47d39b53822e82" > API::endpoint_type< / a > endpoint) const< / td > < / tr >
< tr class = "memdesc:abf980d36a6ccb5eadee1cd9ef80baf0d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Make a HTTP GET call. < a href = "classmastodonpp_1_1Request.html#abf980d36a6ccb5eadee1cd9ef80baf0d" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:abf980d36a6ccb5eadee1cd9ef80baf0d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > Used to make a request to the Mastodon < a class = "el" href = "classmastodonpp_1_1API.html" title = "Holds API endpoints." > API< / a > . < / p >
< dl class = "section since" > < dt > Since< / dt > < dd > 0.1.0 < / dd > < / dl >
< / div > < h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
< a id = "ab79b1b1c9172b6bd6aebd212f31d9a85" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ab79b1b1c9172b6bd6aebd212f31d9a85" > ◆ < / a > < / span > Request()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > mastodonpp::Request::Request < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classmastodonpp_1_1Instance.html" > Instance< / a > &   < / td >
< td class = "paramname" > < em > instance< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > explicit< / span > < / span > < / td >
< / tr >
2020-01-03 12:47:36 +01:00
< / table >
2020-01-04 11:40:17 +01:00
< / div > < div class = "memdoc" >
< p > Construct a new < a class = "el" href = "classmastodonpp_1_1Request.html" title = "Used to make a request to the Mastodon API." > Request< / a > object. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > instance< / td > < td > An < a class = "el" href = "classmastodonpp_1_1Instance.html" title = "Holds the hostname and access token of an instance." > Instance< / a > with the access data.< / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section since" > < dt > Since< / dt > < dd > 0.1.0 < / dd > < / dl >
< div class = "fragment" > < div class = "line" > < a name = "l00023" > < / a > < span class = "lineno" > 23< / span >   : _instance{instance}< / div >
< div class = "line" > < a name = "l00024" > < / a > < span class = "lineno" > 24< / span >   {}< / div >
< / div > <!-- fragment -->
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
< a id = "abf980d36a6ccb5eadee1cd9ef80baf0d" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#abf980d36a6ccb5eadee1cd9ef80baf0d" > ◆ < / a > < / span > get()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "structmastodonpp_1_1answer__type.html" > answer_type< / a > mastodonpp::Request::get < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classmastodonpp_1_1API.html#afab8f6d794dbe28dde47d39b53822e82" > API::endpoint_type< / a >   < / td >
< td class = "paramname" > < em > endpoint< / em > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Make a HTTP GET call. < / p >
< dl class = "section since" > < dt > Since< / dt > < dd > 0.1.0 < / dd > < / dl >
< div class = "fragment" > < div class = "line" > < a name = "l00027" > < / a > < span class = "lineno" > 27< / span >   {< / div >
< div class = "line" > < a name = "l00028" > < / a > < span class = "lineno" > 28< / span >   answer_type answer;< / div >
< div class = "line" > < a name = "l00029" > < / a > < span class = "lineno" > 29< / span >   answer.body = API{endpoint}.to_string();< / div >
< div class = "line" > < a name = "l00030" > < / a > < span class = "lineno" > 30< / span >   < span class = "keywordflow" > return< / span > answer;< / div >
< div class = "line" > < a name = "l00031" > < / a > < span class = "lineno" > 31< / span >   }< / div >
< / div > <!-- fragment -->
< / div >
< / div >
2020-01-03 12:47:36 +01:00
< hr / > The documentation for this class was generated from the following files:< ul >
< li > include/< a class = "el" href = "request_8hpp_source.html" > request.hpp< / a > < / li >
< li > src/request.cpp< / li >
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
Generated by   < a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "doxygen.png" alt = "doxygen" / >
< / a > 1.8.16
< / small > < / address >
< / body >
< / html >