-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate the client library according to the new specs
- Loading branch information
1 parent
c7b7a8b
commit b0c8834
Showing
42 changed files
with
83 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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` | ||
|
@@ -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})); | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"><</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">"https://cdn.jsdelivr.net/gh/movieofthenight/[email protected].0/bundle.js"</span><span class="hl-2">></</span><span class="hl-3">script</span><span class="hl-2">></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"><</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">"https://cdn.jsdelivr.net/gh/movieofthenight/[email protected].1/bundle.js"</span><span class="hl-2">></</span><span class="hl-3">script</span><span class="hl-2">></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> | ||
|
@@ -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">"streaming-availability"</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">"PUT_YOUR_RAPIDAPI_KEY_HERE"</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"><!</span><span class="hl-3">DOCTYPE</span><span class="hl-1"> </span><span class="hl-5">html</span><span class="hl-2">></span><br/><span class="hl-2"><</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">"en"</span><span class="hl-2">></span><br/><span class="hl-2"><</span><span class="hl-3">head</span><span class="hl-2">></span><br/><span class="hl-1"> </span><span class="hl-2"><</span><span class="hl-3">title</span><span class="hl-2">></span><span class="hl-1">Streaming Availability API In Browser Example</span><span class="hl-2"></</span><span class="hl-3">title</span><span class="hl-2">></span><br/><span class="hl-2"></</span><span class="hl-3">head</span><span class="hl-2">></span><br/><span class="hl-2"><</span><span class="hl-3">body</span><span class="hl-2">></span><br/><span class="hl-2"><</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">"https://cdn.jsdelivr.net/gh/movieofthenight/[email protected]/bundle.js"</span><span class="hl-2">></</span><span class="hl-3">script</span><span class="hl-2">></span><br/><span class="hl-2"><</span><span class="hl-3">script</span><span class="hl-2">></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">"PUT_YOUR_RAPIDAPI_KEY_HERE"</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"></</span><span class="hl-3">script</span><span class="hl-2">></span><br/><span class="hl-2"></</span><span class="hl-3">body</span><span class="hl-2">></span><br/><span class="hl-2"></</span><span class="hl-3">html</span><span class="hl-2">></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"><!</span><span class="hl-3">DOCTYPE</span><span class="hl-1"> </span><span class="hl-5">html</span><span class="hl-2">></span><br/><span class="hl-2"><</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">"en"</span><span class="hl-2">></span><br/><span class="hl-2"><</span><span class="hl-3">head</span><span class="hl-2">></span><br/><span class="hl-1"> </span><span class="hl-2"><</span><span class="hl-3">title</span><span class="hl-2">></span><span class="hl-1">Streaming Availability API In Browser Example</span><span class="hl-2"></</span><span class="hl-3">title</span><span class="hl-2">></span><br/><span class="hl-2"></</span><span class="hl-3">head</span><span class="hl-2">></span><br/><span class="hl-2"><</span><span class="hl-3">body</span><span class="hl-2">></span><br/><span class="hl-2"><</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">"https://cdn.jsdelivr.net/gh/movieofthenight/[email protected]/bundle.js"</span><span class="hl-2">></</span><span class="hl-3">script</span><span class="hl-2">></span><br/><span class="hl-2"><</span><span class="hl-3">script</span><span class="hl-2">></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">"PUT_YOUR_RAPIDAPI_KEY_HERE"</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"></</span><span class="hl-3">script</span><span class="hl-2">></span><br/><span class="hl-2"></</span><span class="hl-3">body</span><span class="hl-2">></span><br/><span class="hl-2"></</span><span class="hl-3">html</span><span class="hl-2">></span> | ||
</code><button>Copy</button></pre> | ||
<blockquote> | ||
<p>Warning: As it would expose your API key to visitors of the page, | ||
|
Oops, something went wrong.