79404145

Date: 2025-01-31 23:00:38
Score: 0.5
Natty:
Report link
const clientCredentials = `&client_id=${process.env.SPOTIFY_CLIENT_ID}&client_secret=${process.env.SPOTIFY_CLIENT_SECRET}`;
const options = {
    method: "POST",
    body: `grant_type=client_credentials${clientCredentials}`,
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
}
const response = await fetch("https://accounts.spotify.com/api/token", options);
const json = await response.json();
console.log("RESPONSE:", json);

can confirm this works...for now

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): can
  • Low reputation (0.5):
Posted by: kai_onthereal