2018-07-12 16:11:17 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div class="container api_documentation">
|
|
|
|
<div class="row" style="margin-bottom:4px;">
|
2019-02-10 00:21:58 +00:00
|
|
|
<div class="col-lg-9">
|
2018-10-25 21:01:07 +00:00
|
|
|
<h2>API documentation</h2>
|
|
|
|
<hr>
|
2018-07-12 16:11:17 +00:00
|
|
|
<p>
|
|
|
|
Requests are made using standard HTTP and responses are returned in JSON format.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<ul>
|
|
|
|
<li><a href="#api_convert_wow_usd">/api/1/convert/wow-usd</a></li>
|
|
|
|
<li><a href="#api_proposals">/api/1/proposals</a></li>
|
|
|
|
</ul>
|
|
|
|
</p>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<div class="api_container" id="api_convert_wow_usd">
|
|
|
|
<h5><small>GET</small> <code>/api/1/convert/wow-usd</code></h5>
|
|
|
|
<hr>
|
|
|
|
<p>
|
|
|
|
WOW to USD conversion. Data from TradeOgre and CoinMarketCap.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<b>Example:</b>
|
2018-09-05 22:27:26 +00:00
|
|
|
<pre>curl -vvX GET 'https://funding.wownero.com/api/1/convert/wow-usd?amount=1000'</pre>
|
2018-07-12 16:11:17 +00:00
|
|
|
|
|
|
|
<b>Response:</b>
|
|
|
|
<pre>{"usd": 6.7}</pre>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="api_container" id="api_proposals">
|
|
|
|
<h5><small>GET</small> <code>/api/1/proposals</code></h5>
|
|
|
|
<hr>
|
|
|
|
<p>
|
|
|
|
Proposal listing.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<b>Parameters:</b>
|
|
|
|
<ul>
|
|
|
|
<li><code>status</code>: the proposal status, from 0 to 5. Default is 1.</li>
|
|
|
|
<li><code>limit</code>: limit results. Default is 20.</li>
|
|
|
|
<li><code>offset</code>: offset results. Default is 0.</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<b>Example:</b>
|
2018-07-12 16:52:12 +00:00
|
|
|
<pre>curl -vvX GET 'https://funding.wownero.com/api/1/proposals?offset=0&limit=1&status=2'</pre>
|
2018-07-12 16:11:17 +00:00
|
|
|
|
|
|
|
<b>Response:</b>
|
|
|
|
<pre>{
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": 15,
|
|
|
|
"user": "dsc",
|
|
|
|
"headline": "[Bounty] Memes",
|
|
|
|
"content": "### markdown Content",
|
|
|
|
"category": "marketing",
|
|
|
|
"addr_donation": "WW3LcKRi3vJGSn11256Q819gExLtfsR3DZeGneu7K55QeeS4YcKMaDAHZ16hRM2gmJT7pVRiTGesjCsJUNAJPTn42rnh7wZEa",
|
|
|
|
"date_posted": "Jul 09 2018 21:59:26",
|
|
|
|
"date_posted_epoch": "1531173566",
|
|
|
|
"funded_pct": 33.3333333333333,
|
|
|
|
"funds_target": 15000.0,
|
|
|
|
"status": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}</pre>
|
|
|
|
</div>
|
2018-10-20 00:11:54 +00:00
|
|
|
|
|
|
|
<div class="api_container" id="api_qr_generation">
|
|
|
|
<h5><small>GET</small> <code>/api/1/qr</code></h5>
|
|
|
|
<hr>
|
|
|
|
<p>
|
|
|
|
WOW address to QR code generation. Returns 300x300 png.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<b>Example:</b>
|
|
|
|
<br>
|
2018-10-20 00:45:42 +00:00
|
|
|
<a target="_blank" href="https://funding.wownero.com/api/1/qr?address=WW44Zvkfv76ezeFn5M4ijAdjyCe7dK48bjaFixvyJoeyP1pmkn2MbLugchM8hV6czL4hBhjnKTP4W9HfHyNUqBch2y2R4DT3v">
|
2018-10-20 00:11:54 +00:00
|
|
|
link
|
|
|
|
</a>
|
|
|
|
</div>
|
2018-11-02 21:34:37 +00:00
|
|
|
|
|
|
|
<div class="api_container" id="api_wow_supply">
|
|
|
|
<h5><small>GET</small> <code>/api/1/wow/supply</code></h5>
|
|
|
|
<hr>
|
|
|
|
<p>
|
|
|
|
The current total supply of WOW.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<b>Example:</b>
|
|
|
|
<pre>curl -vvX GET 'https://funding.wownero.com/api/1/wow/supply'</pre>
|
|
|
|
|
|
|
|
<b>Response:</b>
|
|
|
|
<pre>{
|
|
|
|
"data": 10456897.573388882
|
|
|
|
}</pre>
|
|
|
|
</div>
|
2018-07-12 16:11:17 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% include 'sidebar.html' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.container -->
|
|
|
|
{% endblock %}
|