Deploying to gh-pages from @ artegoser/piped-api@c71702157f 🚀

This commit is contained in:
artegoser 2023-08-09 07:09:43 +00:00
parent 5820c7fa0a
commit d2e057ad56
17 changed files with 142 additions and 141 deletions

View file

@ -13,6 +13,7 @@
<div class="tsd-page-title">
<h2>piped-api</h2></div>
<div class="tsd-panel tsd-typography"><a id="md:piped-api" class="tsd-anchor"></a><h1><a href="#md:piped-api">Piped API</a></h1><p>This is the API wrapper for <a href="https://github.com/TeamPiped/Piped">Piped</a> in Node.js (Typescript).</p>
<p><a href="https://artegoser.github.io/piped-api/">Docs</a></p>
<a id="md:installation" class="tsd-anchor"></a><h2><a href="#md:installation">Installation</a></h2><pre><code class="language-bash"><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-2">i</span><span class="hl-1"> </span><span class="hl-2">piped-api</span>
</code><button>Copy</button></pre>
<a id="md:usage" class="tsd-anchor"></a><h2><a href="#md:usage">Usage</a></h2><pre><code class="language-typescript"><span class="hl-3">import</span><span class="hl-1"> { </span><span class="hl-4">PipedAPI</span><span class="hl-1"> } </span><span class="hl-3">from</span><span class="hl-1"> </span><span class="hl-2">&quot;piped-api&quot;</span><span class="hl-1">;</span><br/><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-6">api</span><span class="hl-1"> = </span><span class="hl-5">new</span><span class="hl-1"> </span><span class="hl-0">PipedAPI</span><span class="hl-1">(</span><span class="hl-2">&quot;https://ytapi.dc09.ru&quot;</span><span class="hl-1">);</span><br/><br/><span class="hl-5">let</span><span class="hl-1"> </span><span class="hl-4">trending</span><span class="hl-1"> = </span><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-4">api</span><span class="hl-1">.</span><span class="hl-0">trending</span><span class="hl-1">(</span><span class="hl-2">&quot;US&quot;</span><span class="hl-1">);</span><br/><br/><span class="hl-4">console</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-4">trending</span><span class="hl-1">[</span><span class="hl-7">0</span><span class="hl-1">].</span><span class="hl-4">title</span><span class="hl-1">);</span>