Some more documentation work (90% complete)

This commit is contained in:
killer069
2021-11-22 16:03:33 +05:30
parent 283d864183
commit 029ae9b8f3
4 changed files with 83 additions and 19 deletions

View File

@@ -16,7 +16,18 @@ interface tokenOptions {
cookie: string;
};
}
/**
* Sets
*
* i> YouTube :- cookies.
*
* ii> SoundCloud :- client ID.
*
* iii> Spotify :- client ID, client secret, refresh token, market.
*
* locally in memory.
* @param options {@link tokenOptions}
*/
export function setToken(options: tokenOptions) {
if (options.spotify) setSpotifyToken(options.spotify);
if (options.soundcloud) setSoundCloudToken(options.soundcloud);