🐛 (spotify)
This commit is contained in:
@@ -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}`,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user