Skip to content

Commit

Permalink
Regenerate the client library according to the new specs
Browse files Browse the repository at this point in the history
  • Loading branch information
the-maestro-bot committed Dec 20, 2023
1 parent c7b7a8b commit b0c8834
Show file tree
Hide file tree
Showing 42 changed files with 83 additions and 82 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ npm i streaming-availability
### Browser

```html
<script src="https://cdn.jsdelivr.net/gh/movieofthenight/[email protected].0/bundle.js"></script>
<script src="https://cdn.jsdelivr.net/gh/movieofthenight/[email protected].1/bundle.js"></script>
```

This script creates a global variable at `window.streamingAvailability`
Expand Down Expand Up @@ -116,7 +116,7 @@ const client = new streamingAvailability.DefaultApi(new streamingAvailability.Co
<title>Streaming Availability API In Browser Example</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/gh/movieofthenight/ts-streaming-availability@2.1.1/bundle.js"></script>
<script src="https://cdn.jsdelivr.net/gh/movieofthenight/ts-streaming-availability@v3.0.1/bundle.js"></script>
<script>
const RAPID_API_KEY = "PUT_YOUR_RAPIDAPI_KEY_HERE";
const client = new streamingAvailability.DefaultApi(new streamingAvailability.Configuration({apiKey: RAPID_API_KEY}));
Expand Down
68 changes: 34 additions & 34 deletions bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/AddonFromJSON.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/AddonFromJSONTyped.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/AddonToJSON.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<blockquote>
<p>Requires Node version <code>18.0.0</code> or higher.</p>
</blockquote>
<a id="md:browser" class="tsd-anchor"></a><h3><a href="#md:browser">Browser</a></h3><pre><code class="language-html"><span class="hl-2">&lt;</span><span class="hl-3">script</span><span class="hl-4"> </span><span class="hl-5">src</span><span class="hl-4">=</span><span class="hl-6">&quot;https://cdn.jsdelivr.net/gh/movieofthenight/[email protected].0/bundle.js&quot;</span><span class="hl-2">&gt;&lt;/</span><span class="hl-3">script</span><span class="hl-2">&gt;</span>
<a id="md:browser" class="tsd-anchor"></a><h3><a href="#md:browser">Browser</a></h3><pre><code class="language-html"><span class="hl-2">&lt;</span><span class="hl-3">script</span><span class="hl-4"> </span><span class="hl-5">src</span><span class="hl-4">=</span><span class="hl-6">&quot;https://cdn.jsdelivr.net/gh/movieofthenight/[email protected].1/bundle.js&quot;</span><span class="hl-2">&gt;&lt;/</span><span class="hl-3">script</span><span class="hl-2">&gt;</span>
</code><button>Copy</button></pre>
<p>This script creates a global variable at <code>window.streamingAvailability</code>
where you can access to the module.</p>
Expand All @@ -63,7 +63,7 @@
</code><button>Copy</button></pre>
<a id="md:node-with-typescript" class="tsd-anchor"></a><h3><a href="#md:node-with-typescript">Node with TypeScript</a></h3><pre><code class="language-ts"><span class="hl-7">import</span><span class="hl-1"> </span><span class="hl-9">*</span><span class="hl-1"> </span><span class="hl-7">as</span><span class="hl-1"> </span><span class="hl-0">streamingAvailability</span><span class="hl-1"> </span><span class="hl-7">from</span><span class="hl-1"> </span><span class="hl-8">&quot;streaming-availability&quot;</span><span class="hl-1">;</span><br/><span class="hl-9">const</span><span class="hl-1"> </span><span class="hl-10">RAPID_API_KEY</span><span class="hl-1"> = </span><span class="hl-8">&quot;PUT_YOUR_RAPIDAPI_KEY_HERE&quot;</span><span class="hl-1">;</span><br/><span class="hl-9">const</span><span class="hl-1"> </span><span class="hl-10">client</span><span class="hl-1"> = </span><span class="hl-9">new</span><span class="hl-1"> </span><span class="hl-0">streamingAvailability</span><span class="hl-1">.</span><span class="hl-11">DefaultApi</span><span class="hl-1">(</span><span class="hl-9">new</span><span class="hl-1"> </span><span class="hl-0">streamingAvailability</span><span class="hl-1">.</span><span class="hl-11">Configuration</span><span class="hl-1">({</span><span class="hl-0">apiKey:</span><span class="hl-1"> </span><span class="hl-10">RAPID_API_KEY</span><span class="hl-1">}));</span><br/><span class="hl-12">// Start using the client</span>
</code><button>Copy</button></pre>
<a id="md:browser-1" class="tsd-anchor"></a><h3><a href="#md:browser-1">Browser</a></h3><pre><code class="language-html"><span class="hl-2">&lt;!</span><span class="hl-3">DOCTYPE</span><span class="hl-1"> </span><span class="hl-5">html</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;</span><span class="hl-3">html</span><span class="hl-1"> </span><span class="hl-5">lang</span><span class="hl-1">=</span><span class="hl-6">&quot;en&quot;</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;</span><span class="hl-3">head</span><span class="hl-2">&gt;</span><br/><span class="hl-1"> </span><span class="hl-2">&lt;</span><span class="hl-3">title</span><span class="hl-2">&gt;</span><span class="hl-1">Streaming Availability API In Browser Example</span><span class="hl-2">&lt;/</span><span class="hl-3">title</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;/</span><span class="hl-3">head</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;</span><span class="hl-3">body</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;</span><span class="hl-3">script</span><span class="hl-4"> </span><span class="hl-5">src</span><span class="hl-4">=</span><span class="hl-6">&quot;https://cdn.jsdelivr.net/gh/movieofthenight/[email protected]/bundle.js&quot;</span><span class="hl-2">&gt;&lt;/</span><span class="hl-3">script</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;</span><span class="hl-3">script</span><span class="hl-2">&gt;</span><br/><span class="hl-4"> </span><span class="hl-9">const</span><span class="hl-4"> </span><span class="hl-10">RAPID_API_KEY</span><span class="hl-4"> </span><span class="hl-1">=</span><span class="hl-4"> </span><span class="hl-8">&quot;PUT_YOUR_RAPIDAPI_KEY_HERE&quot;</span><span class="hl-4">;</span><br/><span class="hl-4"> </span><span class="hl-9">const</span><span class="hl-4"> </span><span class="hl-10">client</span><span class="hl-4"> </span><span class="hl-1">=</span><span class="hl-4"> </span><span class="hl-9">new</span><span class="hl-4"> </span><span class="hl-0">streamingAvailability</span><span class="hl-4">.</span><span class="hl-11">DefaultApi</span><span class="hl-4">(</span><span class="hl-9">new</span><span class="hl-4"> </span><span class="hl-0">streamingAvailability</span><span class="hl-4">.</span><span class="hl-11">Configuration</span><span class="hl-4">({</span><span class="hl-0">apiKey:</span><span class="hl-4"> </span><span class="hl-10">RAPID_API_KEY</span><span class="hl-4">}));</span><br/><span class="hl-4"> </span><span class="hl-12">// Start using the client</span><br/><span class="hl-2">&lt;/</span><span class="hl-3">script</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;/</span><span class="hl-3">body</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;/</span><span class="hl-3">html</span><span class="hl-2">&gt;</span>
<a id="md:browser-1" class="tsd-anchor"></a><h3><a href="#md:browser-1">Browser</a></h3><pre><code class="language-html"><span class="hl-2">&lt;!</span><span class="hl-3">DOCTYPE</span><span class="hl-1"> </span><span class="hl-5">html</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;</span><span class="hl-3">html</span><span class="hl-1"> </span><span class="hl-5">lang</span><span class="hl-1">=</span><span class="hl-6">&quot;en&quot;</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;</span><span class="hl-3">head</span><span class="hl-2">&gt;</span><br/><span class="hl-1"> </span><span class="hl-2">&lt;</span><span class="hl-3">title</span><span class="hl-2">&gt;</span><span class="hl-1">Streaming Availability API In Browser Example</span><span class="hl-2">&lt;/</span><span class="hl-3">title</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;/</span><span class="hl-3">head</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;</span><span class="hl-3">body</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;</span><span class="hl-3">script</span><span class="hl-4"> </span><span class="hl-5">src</span><span class="hl-4">=</span><span class="hl-6">&quot;https://cdn.jsdelivr.net/gh/movieofthenight/[email protected]/bundle.js&quot;</span><span class="hl-2">&gt;&lt;/</span><span class="hl-3">script</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;</span><span class="hl-3">script</span><span class="hl-2">&gt;</span><br/><span class="hl-4"> </span><span class="hl-9">const</span><span class="hl-4"> </span><span class="hl-10">RAPID_API_KEY</span><span class="hl-4"> </span><span class="hl-1">=</span><span class="hl-4"> </span><span class="hl-8">&quot;PUT_YOUR_RAPIDAPI_KEY_HERE&quot;</span><span class="hl-4">;</span><br/><span class="hl-4"> </span><span class="hl-9">const</span><span class="hl-4"> </span><span class="hl-10">client</span><span class="hl-4"> </span><span class="hl-1">=</span><span class="hl-4"> </span><span class="hl-9">new</span><span class="hl-4"> </span><span class="hl-0">streamingAvailability</span><span class="hl-4">.</span><span class="hl-11">DefaultApi</span><span class="hl-4">(</span><span class="hl-9">new</span><span class="hl-4"> </span><span class="hl-0">streamingAvailability</span><span class="hl-4">.</span><span class="hl-11">Configuration</span><span class="hl-4">({</span><span class="hl-0">apiKey:</span><span class="hl-4"> </span><span class="hl-10">RAPID_API_KEY</span><span class="hl-4">}));</span><br/><span class="hl-4"> </span><span class="hl-12">// Start using the client</span><br/><span class="hl-2">&lt;/</span><span class="hl-3">script</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;/</span><span class="hl-3">body</span><span class="hl-2">&gt;</span><br/><span class="hl-2">&lt;/</span><span class="hl-3">html</span><span class="hl-2">&gt;</span>
</code><button>Copy</button></pre>
<blockquote>
<p>Warning: As it would expose your API key to visitors of the page,
Expand Down
Loading

0 comments on commit b0c8834

Please sign in to comment.