-
Notifications
You must be signed in to change notification settings - Fork 0
getMixInfo
LakhindarPal edited this page May 12, 2024
·
2 revisions
getMixInfo(
mixId
,countryCode
?):Promise
<Mix
>
Retrieves mix information from the Tidal API based on the provided mix ID and country code.
-
mixId:
string
The ID of the mix.
-
countryCode?:
string
="US"
The country code to use for retrieving the mix information. Defaults to "US".
Promise
<Mix>
A promise that resolves to a Mix object containing the mix information.
const { getMixInfo } = require("tidal-music-api");
// example mix ID
const id = "005a8e20de5f0e46511435eb8a7521";
try {
const info = await getMixInfo(id);
console.log(info);
} catch (error) {
console.error("Error:", error);
}