🐛 (spotify)

This commit is contained in:
2020-07-22 23:27:28 +02:00
parent cc6efc49dd
commit e10f186420
3 changed files with 15 additions and 15 deletions

View File

@@ -20,20 +20,6 @@ export const redirectToSpotifyConnect = () => {
}
export const playOnSpotify = async (token: string, deviceId: string) => {
// const response = await fetch(
// `https://api.spotify.com/v1/me/player/shuffle?device_id=${deviceId}&state=true`,
// {
// method: 'PUT',
// headers: {
// accept: 'application/json',
// 'content-type': 'application/json',
// authorization: `Bearer ${token}`
// }
// }
// )
// console.log(await response.json())
await fetch(
`https://api.spotify.com/v1/me/player/play?device_id=${deviceId}`,
{