summaryrefslogtreecommitdiff
path: root/build/html/receivingresponses
diff options
context:
space:
mode:
authorKen <kenny@madgloryint.com>2017-11-01 13:27:17 -0400
committerKen <kenny@madgloryint.com>2017-11-01 13:27:17 -0400
commit1385a3cefc7312a3f18e8d78a854411b53c75e67 (patch)
treef27292fc20215f68c25ab09830947da56fb732a9 /build/html/receivingresponses
parent0f19a09673be2bb79426e21a6460d5095f43287a (diff)
downloadvainglory-docs-1385a3cefc7312a3f18e8d78a854411b53c75e67.tar.gz
vainglory-docs-1385a3cefc7312a3f18e8d78a854411b53c75e67.zip
Initial commit of the new logs.
Diffstat (limited to 'build/html/receivingresponses')
-rw-r--r--build/html/receivingresponses/receivingresponses.html191
1 files changed, 191 insertions, 0 deletions
diff --git a/build/html/receivingresponses/receivingresponses.html b/build/html/receivingresponses/receivingresponses.html
new file mode 100644
index 0000000..2035d13
--- /dev/null
+++ b/build/html/receivingresponses/receivingresponses.html
@@ -0,0 +1,191 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://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/html; charset=utf-8" />
+ <title>Receiving Responses &#8212; Battelrite 0.2 documentation</title>
+ <link rel="stylesheet" href="../_static/css/battlerite.css" type="text/css" />
+ <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
+ <script type="text/javascript">
+ var DOCUMENTATION_OPTIONS = {
+ URL_ROOT: '../',
+ VERSION: '0.2',
+ COLLAPSE_INDEX: false,
+ FILE_SUFFIX: '.html',
+ HAS_SOURCE: true,
+ SOURCELINK_SUFFIX: '.txt'
+ };
+ </script>
+ <script type="text/javascript" src="../_static/jquery.js"></script>
+ <script type="text/javascript" src="../_static/underscore.js"></script>
+ <script type="text/javascript" src="../_static/doctools.js"></script>
+ <link rel="index" title="Index" href="../genindex.html" />
+ <link rel="search" title="Search" href="../search.html" />
+ <link rel="next" title="Matches" href="../matches/matches.html" />
+ <link rel="prev" title="Making Requests" href="../makingrequests/makingrequests.html" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+ </head>
+ <body>
+<header id="BTT" role="banner">
+ <div class="menu-top-outer clearfix">
+ <div class="wrapper clearfix">
+ <a href="/" id="site-logo"></a>
+ <span id="logSignBtn" class="btn">Login / Signup</span>
+ <nav id="mainMenu" class="main-menu-con">
+ <ul class="main-menu clearfix">
+ <li><a class="active" href="guides.html">Documentation</a></li>
+ <li><a href="faq.html">Faqs</a></li>
+ <li><a href="creations.html">Creations</a></li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+</header>
+
+ <div class="related top">
+ <nav id="rellinks">
+ <ul>
+ <li>
+ &larr;
+ <a href="../makingrequests/makingrequests.html" title="Previous document">Making Requests</a>
+ </li>
+ <li>
+ <a href="../matches/matches.html" title="Next document">Matches</a>
+ &rarr;
+ </li>
+ </ul>
+ </nav>
+ <nav id="breadcrumbs">
+ <ul>
+ <li><a href="../index.html">Battelrite 0.2 documentation</a></li>
+ </ul>
+ </nav>
+ </div>
+
+ <div class="document">
+ <div class="documentwrapper">
+ <div class="bodywrapper">
+ <div class="body" role="main">
+
+ <div class="section" id="receiving-responses">
+<span id="receivingresponses"></span><h1>Receiving Responses<a class="headerlink" href="#receiving-responses" title="Permalink to this headline">¶</a></h1>
+<div class="section" id="payload">
+<h2>Payload<a class="headerlink" href="#payload" title="Permalink to this headline">¶</a></h2>
+<p>All Server responses contain a root JSON object.</p>
+<p>A response will contain at least one of the following top-level members:</p>
+<ul class="simple">
+<li><code class="docutils literal"><span class="pre">data</span></code> : the response’s “primary data”</li>
+<li><code class="docutils literal"><span class="pre">errors</span></code> : an array of error objects</li>
+</ul>
+<p>A response may contain any of these top-level members:</p>
+<ul class="simple">
+<li><code class="docutils literal"><span class="pre">links</span></code>: a links object related to the primary data.</li>
+<li><code class="docutils literal"><span class="pre">included</span></code>: an array of resource objects that are related to the primary data and/or each other (“included resources”).</li>
+</ul>
+<p>If a document does not contain a top-level data key, the included member will not be present either.</p>
+<p>Primary data will be either:</p>
+<ul class="simple">
+<li>a single [resource object][resource objects], a single [resource identifier object], or <code class="docutils literal"><span class="pre">null</span></code></li>
+<li>an array of [resource objects], an array of [resource identifier objects][resource identifier object], or an empty array <code class="docutils literal"><span class="pre">([])</span></code></li>
+</ul>
+<p>For example, the following primary data is a single resource object. It’s primary data is a single [resource identifier object] that references the same resource. A logical collection of resources will always be represented as an array, even if it only contains one item or is empty.</p>
+<p><strong>Javascript:</strong></p>
+<div class="highlight-javascript"><div class="highlight"><pre><span></span><span class="p">{</span>
+ <span class="s2">&quot;data&quot;</span><span class="o">:</span> <span class="p">{</span>
+ <span class="s2">&quot;type&quot;</span><span class="o">:</span> <span class="s2">&quot;match&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;id&quot;</span><span class="o">:</span> <span class="s2">&quot;skarn&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;attributes&quot;</span><span class="o">:</span> <span class="p">{</span>
+ <span class="c1">// ... this matches attributes</span>
+ <span class="p">},</span>
+ <span class="s2">&quot;relationships&quot;</span><span class="o">:</span> <span class="p">{</span>
+ <span class="c1">// ... this matches relationships</span>
+ <span class="p">}</span>
+ <span class="p">}</span>
+<span class="p">}</span>
+<span class="p">{</span>
+ <span class="s2">&quot;data&quot;</span><span class="o">:</span> <span class="p">{</span>
+ <span class="s2">&quot;type&quot;</span><span class="o">:</span> <span class="s2">&quot;match&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;id&quot;</span><span class="o">:</span> <span class="s2">&quot;1&quot;</span>
+ <span class="p">}</span>
+<span class="p">}</span>
+</pre></div>
+</div>
+</div>
+<div class="section" id="rate-limits">
+<h2>Rate Limits<a class="headerlink" href="#rate-limits" title="Permalink to this headline">¶</a></h2>
+<p>Be nice. If you’re sending too many requests too quickly, we’ll send back a
+<code class="docutils literal"><span class="pre">429</span></code> error code (server unavailable).</p>
+<p><strong>Please note: Free for non-commercial use for up to 10 requests per minute! To increase your rate limit, log into your admin dashboard, find the app you would like a higher rate limit for, and click “request a higher rate limit”</strong></p>
+<p><strong>Shell:</strong></p>
+<div class="highlight-shell"><div class="highlight"><pre><span></span>The rate limit headers are defined as follows:
+
+X-RateLimit-Limit - Request limit per day / per minute
+X-RateLimit-Remaining - The number of requests left <span class="k">for</span> the <span class="nb">time</span> window
+X-RateLimit-Reset - The remaining window before the rate limit is refilled in UTC epoch nanoseconds.
+
+* Limit tokens are incrementally filled by <span class="m">60</span><span class="o">(</span>sec<span class="o">)</span>/ rate limit. ex: <span class="m">60</span><span class="o">(</span>sec<span class="o">)</span>/10<span class="o">(</span>rate<span class="o">)</span> gets rate token every <span class="m">6</span> seconds up to max rate limit.
+</pre></div>
+</div>
+<div class="toctree-wrapper compound">
+</div>
+</div>
+</div>
+
+
+ </div>
+ </div>
+ </div>
+ <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
+ <div class="sphinxsidebarwrapper">
+<h3><a href="../index.html">Table Of Contents</a></h3>
+<ul class="current">
+<li class="toctree-l1"><a class="reference internal" href="../introduction.html">Introduction</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../datacenters/datacenters.html">Datacenters</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../authorization/authorization.html">Authorization</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../titles/titles.html">Titles</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../makingrequests/makingrequests.html">Making Requests</a></li>
+<li class="toctree-l1 current"><a class="current reference internal" href="#">Receiving Responses</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="#payload">Payload</a></li>
+<li class="toctree-l2"><a class="reference internal" href="#rate-limits">Rate Limits</a></li>
+</ul>
+</li>
+<li class="toctree-l1"><a class="reference internal" href="../matches/matches.html">Matches</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../match_data_summary/match_data_summary.html">Match Data Summary</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../players/players.html">Players</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../samples/samples.html">Samples</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../telemetry/telemetry.html">Telemetry</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../teams/teams.html">Teams</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../links/links.html">Links</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../community_sdks/community_sdks.html">Community SDKs</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../errors/errors.html">Errors</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../changelog/changelog.html">Changelog</a></li>
+</ul>
+
+ </div>
+ </div>
+ <div class="clearer"></div>
+ </div>
+ <div class="related bottom">
+ <nav id="rellinks">
+ <ul>
+ <li>
+ &larr;
+ <a href="../makingrequests/makingrequests.html" title="Previous document">Making Requests</a>
+ </li>
+ <li>
+ <a href="../matches/matches.html" title="Next document">Matches</a>
+ &rarr;
+ </li>
+ </ul>
+ </nav>
+ <nav id="breadcrumbs">
+ <ul>
+ <li><a href="../index.html">Battelrite 0.2 documentation</a></li>
+ </ul>
+ </nav>
+ </div>
+
+ </body>
+</html> \ No newline at end of file