Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
Breaking, change constructor to use object
Browse files Browse the repository at this point in the history
* I don't want to overload this because it becomes harder and harder to
  maintain the overloads.
  • Loading branch information
codyduong committed Mar 9, 2022
1 parent a82a68d commit daf5080
Show file tree
Hide file tree
Showing 17 changed files with 123 additions and 59 deletions.
54 changes: 47 additions & 7 deletions docs/YTMusic.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<body>

<nav class="navbar" id="navbar">
<div class="navbar-heading" id="navbar-heading"><a href="index.html"><h2 class="navbar-heading-text">Home</h2></a></div><div class="search-box" id="search-box"><div class="search-box-input-container"><input class="search-box-input" type="text" placeholder="Search..." id="search-box-input" /><svg class="search-icon" alt="search-icon"><use xlink:href="#search-icon"></use></svg></div><div class="search-item-container" id="search-item-container"><ul class="search-item-ul" id="search-item-ul"></ul></div></div><div class="sidebar-main-content" id="sidebar-main-content"><div class="accordion collapsed" id="1907155" > <h3 class="accordion-heading">Modules<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=3129368><div class="accordion-heading child"><a href="module-Browsing.html">Browsing</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="module-Browsing.html#getAlbum">getAlbum</a></li><li data-type='method'><a href="module-Browsing.html#getAlbumBrowseId">getAlbumBrowseId</a></li><li data-type='method'><a href="module-Browsing.html#getArtist">getArtist</a></li><li data-type='method'><a href="module-Browsing.html#getArtistAlbums">getArtistAlbums</a></li><li data-type='method'><a href="module-Browsing.html#getBaseJSUrl">getBaseJSUrl</a></li><li data-type='method'><a href="module-Browsing.html#getLyrics">getLyrics</a></li><li data-type='method'><a href="module-Browsing.html#getSignatureTimestamp">getSignatureTimestamp</a></li><li data-type='method'><a href="module-Browsing.html#getSong">getSong</a></li><li data-type='method'><a href="module-Browsing.html#getUser">getUser</a></li><li data-type='method'><a href="module-Browsing.html#getUserPlaylists">getUserPlaylists</a></li><li data-type='method'><a href="module-Browsing.html#search">search</a></li></ul></li><li class="accordion collapsed child" id=5819203><div class="accordion-heading child"><a href="module-Explore.html">Explore</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="module-Explore.html#getCharts">getCharts</a></li><li data-type='method'><a href="module-Explore.html#getMoodCategories">getMoodCategories</a></li><li data-type='method'><a href="module-Explore.html#getMoodPlaylists">getMoodPlaylists</a></li></ul></li><li class="accordion collapsed child" id=2616894><div class="accordion-heading child"><a href="module-Library.html">Library</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="module-Library.html#editSongLibraryStatus">editSongLibraryStatus</a></li><li data-type='method'><a href="module-Library.html#getHistory">getHistory</a></li><li data-type='method'><a href="module-Library.html#getLibraryAlbums">getLibraryAlbums</a></li><li data-type='method'><a href="module-Library.html#getLibraryArtists">getLibraryArtists</a></li><li data-type='method'><a href="module-Library.html#getLibraryPlaylists">getLibraryPlaylists</a></li><li data-type='method'><a href="module-Library.html#getLibrarySongs">getLibrarySongs</a></li><li data-type='method'><a href="module-Library.html#getLibrarySubscriptions">getLibrarySubscriptions</a></li><li data-type='method'><a href="module-Library.html#getLikedSongs">getLikedSongs</a></li><li data-type='method'><a href="module-Library.html#ratePlaylist">ratePlaylist</a></li><li data-type='method'><a href="module-Library.html#rateSong">rateSong</a></li><li data-type='method'><a href="module-Library.html#removeHistoryItems">removeHistoryItems</a></li><li data-type='method'><a href="module-Library.html#subscribeArtists">subscribeArtists</a></li><li data-type='method'><a href="module-Library.html#unsubscribeArtists">unsubscribeArtists</a></li></ul></li><li class="accordion collapsed child" id=6965969><div class="accordion-heading child"><a href="module-Playlists.html">Playlists</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="module-Playlists.html#addPlaylistItems">addPlaylistItems</a></li><li data-type='method'><a href="module-Playlists.html#createPlaylist">createPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#deletePlaylist">deletePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#editPlaylist">editPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#getPlaylist">getPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#getPlaylistSuggestions">getPlaylistSuggestions</a></li><li data-type='method'><a href="module-Playlists.html#removePlaylistItems">removePlaylistItems</a></li></ul></li><li class="accordion collapsed child" id=2577428><div class="accordion-heading child"><a href="module-Uploads.html">Uploads</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="module-Uploads.html#deleteUploadEntity">deleteUploadEntity</a></li><li data-type='method'><a href="module-Uploads.html#getLibraryUploadAlbum">getLibraryUploadAlbum</a></li><li data-type='method'><a href="module-Uploads.html#getLibraryUploadArtist">getLibraryUploadArtist</a></li><li data-type='method'><a href="module-Uploads.html#uploadSong">uploadSong</a></li></ul></li><li class="accordion collapsed child" id=3777358><div class="accordion-heading child"><a href="module-Watch.html">Watch</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="module-Watch.html#getWatchPlaylist">getWatchPlaylist</a></li><li data-type='method'><a href="module-Watch.html#getWatchPlaylistShuffle">getWatchPlaylistShuffle</a></li></ul></li></ul> </div><div class="accordion collapsed" id="9854011" > <h3 class="accordion-heading">Classes<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion-list" id=""><a href="YTMusic.html">YTMusic</a></li></ul> </div>
<div class="navbar-heading" id="navbar-heading"><a href="index.html"><h2 class="navbar-heading-text">Home</h2></a></div><div class="search-box" id="search-box"><div class="search-box-input-container"><input class="search-box-input" type="text" placeholder="Search..." id="search-box-input" /><svg class="search-icon" alt="search-icon"><use xlink:href="#search-icon"></use></svg></div><div class="search-item-container" id="search-item-container"><ul class="search-item-ul" id="search-item-ul"></ul></div></div><div class="sidebar-main-content" id="sidebar-main-content"><div class="accordion collapsed" id="1284701" > <h3 class="accordion-heading">Modules<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=5931685><div class="accordion-heading child"><a href="module-Browsing.html">Browsing</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="module-Browsing.html#getAlbum">getAlbum</a></li><li data-type='method'><a href="module-Browsing.html#getAlbumBrowseId">getAlbumBrowseId</a></li><li data-type='method'><a href="module-Browsing.html#getArtist">getArtist</a></li><li data-type='method'><a href="module-Browsing.html#getArtistAlbums">getArtistAlbums</a></li><li data-type='method'><a href="module-Browsing.html#getBaseJSUrl">getBaseJSUrl</a></li><li data-type='method'><a href="module-Browsing.html#getLyrics">getLyrics</a></li><li data-type='method'><a href="module-Browsing.html#getSignatureTimestamp">getSignatureTimestamp</a></li><li data-type='method'><a href="module-Browsing.html#getSong">getSong</a></li><li data-type='method'><a href="module-Browsing.html#getUser">getUser</a></li><li data-type='method'><a href="module-Browsing.html#getUserPlaylists">getUserPlaylists</a></li><li data-type='method'><a href="module-Browsing.html#search">search</a></li></ul></li><li class="accordion collapsed child" id=9071962><div class="accordion-heading child"><a href="module-Explore.html">Explore</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="module-Explore.html#getCharts">getCharts</a></li><li data-type='method'><a href="module-Explore.html#getMoodCategories">getMoodCategories</a></li><li data-type='method'><a href="module-Explore.html#getMoodPlaylists">getMoodPlaylists</a></li></ul></li><li class="accordion collapsed child" id=5953807><div class="accordion-heading child"><a href="module-Library.html">Library</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="module-Library.html#editSongLibraryStatus">editSongLibraryStatus</a></li><li data-type='method'><a href="module-Library.html#getHistory">getHistory</a></li><li data-type='method'><a href="module-Library.html#getLibraryAlbums">getLibraryAlbums</a></li><li data-type='method'><a href="module-Library.html#getLibraryArtists">getLibraryArtists</a></li><li data-type='method'><a href="module-Library.html#getLibraryPlaylists">getLibraryPlaylists</a></li><li data-type='method'><a href="module-Library.html#getLibrarySongs">getLibrarySongs</a></li><li data-type='method'><a href="module-Library.html#getLibrarySubscriptions">getLibrarySubscriptions</a></li><li data-type='method'><a href="module-Library.html#getLikedSongs">getLikedSongs</a></li><li data-type='method'><a href="module-Library.html#ratePlaylist">ratePlaylist</a></li><li data-type='method'><a href="module-Library.html#rateSong">rateSong</a></li><li data-type='method'><a href="module-Library.html#removeHistoryItems">removeHistoryItems</a></li><li data-type='method'><a href="module-Library.html#subscribeArtists">subscribeArtists</a></li><li data-type='method'><a href="module-Library.html#unsubscribeArtists">unsubscribeArtists</a></li></ul></li><li class="accordion collapsed child" id=2982561><div class="accordion-heading child"><a href="module-Playlists.html">Playlists</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="module-Playlists.html#addPlaylistItems">addPlaylistItems</a></li><li data-type='method'><a href="module-Playlists.html#createPlaylist">createPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#deletePlaylist">deletePlaylist</a></li><li data-type='method'><a href="module-Playlists.html#editPlaylist">editPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#getPlaylist">getPlaylist</a></li><li data-type='method'><a href="module-Playlists.html#getPlaylistSuggestions">getPlaylistSuggestions</a></li><li data-type='method'><a href="module-Playlists.html#removePlaylistItems">removePlaylistItems</a></li></ul></li><li class="accordion collapsed child" id=8494744><div class="accordion-heading child"><a href="module-Uploads.html">Uploads</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="module-Uploads.html#deleteUploadEntity">deleteUploadEntity</a></li><li data-type='method'><a href="module-Uploads.html#getLibraryUploadAlbum">getLibraryUploadAlbum</a></li><li data-type='method'><a href="module-Uploads.html#getLibraryUploadArtist">getLibraryUploadArtist</a></li><li data-type='method'><a href="module-Uploads.html#uploadSong">uploadSong</a></li></ul></li><li class="accordion collapsed child" id=3152014><div class="accordion-heading child"><a href="module-Watch.html">Watch</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="module-Watch.html#getWatchPlaylist">getWatchPlaylist</a></li><li data-type='method'><a href="module-Watch.html#getWatchPlaylistShuffle">getWatchPlaylistShuffle</a></li></ul></li></ul> </div><div class="accordion collapsed" id="443446" > <h3 class="accordion-heading">Classes<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion-list" id=""><a href="YTMusic.html">YTMusic</a></li></ul> </div>


</nav>
Expand Down Expand Up @@ -133,7 +133,7 @@ <h2>

<h4 class="name" id="YTMusic">
<a href="#YTMusic">#</a>
<span class="type-signature"></span>new YTMusic<span class="signature">(auth=<span class="signature-attributes">opt</span>, user=<span class="signature-attributes">opt</span>, proxies, language<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
<span class="type-signature"></span>new YTMusic<span class="signature">(options=<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
</h4>


Expand Down Expand Up @@ -180,7 +180,40 @@ <h4 class="name" id="YTMusic">

<tr>

<td class="name"><code>auth=</code></td>
<td class="name"><code>options=</code></td>


<td class="type">


<span class="param-type">Object</span>



</td>


<td class="attributes">

&lt;optional><br>





</td>




<td class="description last">Options object.</td>
</tr>



<tr>

<td class="name"><code>options.auth=</code></td>


<td class="type">
Expand Down Expand Up @@ -213,7 +246,7 @@ <h4 class="name" id="YTMusic">

<tr>

<td class="name"><code>user=</code></td>
<td class="name"><code>options.user=</code></td>


<td class="type">
Expand Down Expand Up @@ -246,16 +279,23 @@ <h4 class="name" id="YTMusic">

<tr>

<td class="name"><code>proxies</code></td>
<td class="name"><code>options.proxies</code></td>


<td class="type">


<span class="param-type">any</span>



</td>


<td class="attributes">

&lt;optional><br>




Expand All @@ -272,7 +312,7 @@ <h4 class="name" id="YTMusic">

<tr>

<td class="name"><code>language</code></td>
<td class="name"><code>options.language</code></td>


<td class="type">
Expand Down Expand Up @@ -343,7 +383,7 @@ <h4 class="name" id="YTMusic">
<div class="details-item-container">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line28">line 28</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line29">line 29</a>
</li></ul></dd>
</div>

Expand Down
Loading

0 comments on commit daf5080

Please sign in to comment.