OAuth2が出来るようになったよ。ブランチの目的からめちゃくちゃズレてるね

This commit is contained in:
keita
2021-10-07 20:53:25 +09:00
parent a4fd0d9830
commit 5d32261b9e
2184 changed files with 220055 additions and 42 deletions
@@ -0,0 +1,307 @@
<!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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CocoaTweet: CocoaTweet::API::Interface::HttpBase 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">CocoaTweet
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;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&amp;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="namespaceCocoaTweet.html">CocoaTweet</a></li><li class="navelem"><a class="el" href="namespaceCocoaTweet_1_1API.html">API</a></li><li class="navelem"><a class="el" href="namespaceCocoaTweet_1_1API_1_1Interface.html">Interface</a></li><li class="navelem"><a class="el" href="classCocoaTweet_1_1API_1_1Interface_1_1HttpBase.html">HttpBase</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-static-methods">Static Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classCocoaTweet_1_1API_1_1Interface_1_1HttpBase-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">CocoaTweet::API::Interface::HttpBase Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="httpBase_8h_source.html">httpBase.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for CocoaTweet::API::Interface::HttpBase:</div>
<div class="dyncontent">
<div class="center"><img src="classCocoaTweet_1_1API_1_1Interface_1_1HttpBase__inherit__graph.png" border="0" usemap="#CocoaTweet_1_1API_1_1Interface_1_1HttpBase_inherit__map" alt="Inheritance graph"/></div>
<map name="CocoaTweet_1_1API_1_1Interface_1_1HttpBase_inherit__map" id="CocoaTweet_1_1API_1_1Interface_1_1HttpBase_inherit__map">
<area shape="rect" title=" " alt="" coords="5,221,200,263"/>
<area shape="rect" href="classCocoaTweet_1_1API_1_1Interface_1_1HttpGet.html" title="class for Send request with POST method" alt="" coords="248,97,443,139"/>
<area shape="rect" href="classCocoaTweet_1_1API_1_1Interface_1_1HttpPost.html" title="class for Send request with POST method" alt="" coords="248,253,443,295"/>
<area shape="rect" href="classCocoaTweet_1_1API_1_1Statuses_1_1UserTimeline.html" title="class for using statuses/user_timeline endpoint" alt="" coords="533,5,727,47"/>
<area shape="rect" href="classCocoaTweet_1_1API_1_1DirectMessages_1_1New.html" title="class for using statuses/update endpoint" alt="" coords="491,71,769,98"/>
<area shape="rect" href="classCocoaTweet_1_1API_1_1Favorites_1_1Create.html" title=" " alt="" coords="531,123,729,164"/>
<area shape="rect" href="classCocoaTweet_1_1API_1_1Favorites_1_1Destroy.html" title=" " alt="" coords="531,188,729,229"/>
<area shape="rect" href="classCocoaTweet_1_1API_1_1Medias_1_1Upload.html" title="entry point for using media/upload endpoint" alt="" coords="538,253,722,295"/>
<area shape="rect" href="classCocoaTweet_1_1API_1_1Statuses_1_1Destroy.html" title="class for using status/destroy:id endpoint" alt="" coords="533,319,727,360"/>
<area shape="rect" href="classCocoaTweet_1_1API_1_1Statuses_1_1Retweet.html" title=" " alt="" coords="533,384,727,425"/>
<area shape="rect" href="classCocoaTweet_1_1API_1_1Statuses_1_1Unretweet.html" title=" " alt="" coords="533,449,727,491"/>
<area shape="rect" href="classCocoaTweet_1_1API_1_1Statuses_1_1Update.html" title="class for using statuses/update endpoint" alt="" coords="533,515,727,556"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a680ff63af97568baf2587f20b7e1a8ec"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCocoaTweet_1_1API_1_1Interface_1_1HttpBase.html#a680ff63af97568baf2587f20b7e1a8ec">process</a> (std::weak_ptr&lt; <a class="el" href="classCocoaTweet_1_1OAuth_1_1OAuth1.html">CocoaTweet::OAuth::OAuth1</a> &gt; _oauth, std::function&lt; void(const std::string &amp;)&gt; _callback)=0</td></tr>
<tr class="separator:a680ff63af97568baf2587f20b7e1a8ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-methods"></a>
Static Protected Member Functions</h2></td></tr>
<tr class="memitem:a65e649cd380fc68d69aa8b575a20ab10"><td class="memItemLeft" align="right" valign="top">static size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCocoaTweet_1_1API_1_1Interface_1_1HttpBase.html#a65e649cd380fc68d69aa8b575a20ab10">curlCallback_</a> (char *_ptr, size_t _size, size_t _nmemb, std::string *_stream)</td></tr>
<tr class="separator:a65e649cd380fc68d69aa8b575a20ab10"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:ab0b8b76e12fdf34849fc1c8ee928a2ff"><td class="memItemLeft" align="right" valign="top">std::weak_ptr&lt; <a class="el" href="classCocoaTweet_1_1OAuth_1_1OAuth1.html">CocoaTweet::OAuth::OAuth1</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCocoaTweet_1_1API_1_1Interface_1_1HttpBase.html#ab0b8b76e12fdf34849fc1c8ee928a2ff">oauth_</a></td></tr>
<tr class="separator:ab0b8b76e12fdf34849fc1c8ee928a2ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c543dfa69524004df9e0fdcaa610313"><td class="memItemLeft" align="right" valign="top">std::map&lt; std::string, std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCocoaTweet_1_1API_1_1Interface_1_1HttpBase.html#a7c543dfa69524004df9e0fdcaa610313">bodyParam_</a></td></tr>
<tr class="separator:a7c543dfa69524004df9e0fdcaa610313"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6511d018265ca90a5c675b375b8feee0"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCocoaTweet_1_1API_1_1Interface_1_1HttpBase.html#a6511d018265ca90a5c675b375b8feee0">url_</a></td></tr>
<tr class="separator:a6511d018265ca90a5c675b375b8feee0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa80a8d2b339e3eed6f9e031518f8193b"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCocoaTweet_1_1API_1_1Interface_1_1HttpBase.html#aa80a8d2b339e3eed6f9e031518f8193b">contentType_</a></td></tr>
<tr class="separator:aa80a8d2b339e3eed6f9e031518f8193b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a65e649cd380fc68d69aa8b575a20ab10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65e649cd380fc68d69aa8b575a20ab10">&#9670;&nbsp;</a></span>curlCallback_()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static size_t CocoaTweet::API::Interface::HttpBase::curlCallback_ </td>
<td>(</td>
<td class="paramtype">char *&#160;</td>
<td class="paramname"><em>_ptr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>_size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>_nmemb</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::string *&#160;</td>
<td class="paramname"><em>_stream</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a680ff63af97568baf2587f20b7e1a8ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a680ff63af97568baf2587f20b7e1a8ec">&#9670;&nbsp;</a></span>process()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void CocoaTweet::API::Interface::HttpBase::process </td>
<td>(</td>
<td class="paramtype">std::weak_ptr&lt; <a class="el" href="classCocoaTweet_1_1OAuth_1_1OAuth1.html">CocoaTweet::OAuth::OAuth1</a> &gt;&#160;</td>
<td class="paramname"><em>_oauth</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::function&lt; void(const std::string &amp;)&gt;&#160;</td>
<td class="paramname"><em>_callback</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implemented in <a class="el" href="classCocoaTweet_1_1API_1_1Interface_1_1HttpGet.html#a3255bc6867830ff3632530e65c257ecc">CocoaTweet::API::Interface::HttpGet</a>, and <a class="el" href="classCocoaTweet_1_1API_1_1Interface_1_1HttpPost.html#afc4040a8d1b0853585334751717d0662">CocoaTweet::API::Interface::HttpPost</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a7c543dfa69524004df9e0fdcaa610313"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c543dfa69524004df9e0fdcaa610313">&#9670;&nbsp;</a></span>bodyParam_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::map&lt;std::string, std::string&gt; CocoaTweet::API::Interface::HttpBase::bodyParam_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="aa80a8d2b339e3eed6f9e031518f8193b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa80a8d2b339e3eed6f9e031518f8193b">&#9670;&nbsp;</a></span>contentType_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::string CocoaTweet::API::Interface::HttpBase::contentType_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ab0b8b76e12fdf34849fc1c8ee928a2ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0b8b76e12fdf34849fc1c8ee928a2ff">&#9670;&nbsp;</a></span>oauth_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::weak_ptr&lt;<a class="el" href="classCocoaTweet_1_1OAuth_1_1OAuth1.html">CocoaTweet::OAuth::OAuth1</a>&gt; CocoaTweet::API::Interface::HttpBase::oauth_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a6511d018265ca90a5c675b375b8feee0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6511d018265ca90a5c675b375b8feee0">&#9670;&nbsp;</a></span>url_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::string CocoaTweet::API::Interface::HttpBase::url_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/cocoatweet/api/interface/<a class="el" href="httpBase_8h_source.html">httpBase.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>