Skip to content

Instantly share code, notes, and snippets.

@seresk
Created April 12, 2021 19:49
Show Gist options
  • Save seresk/62443b32c7690716eaa61131ac55a171 to your computer and use it in GitHub Desktop.
Save seresk/62443b32c7690716eaa61131ac55a171 to your computer and use it in GitHub Desktop.
Seek
private async _seek(positionMs: number): Promise<void> {
await this.dataService.put<any>(
`https://api.spotify.com/v1/me/player/seek?position_ms=${positionMs}`,
null,
{
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${this.authorizationService.spotifyAccessToken}`
}
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment