SpotifyAPI - i dont understand things but i want this so bad...
With alot of Help from the internet i somehow managed to get to this code: (in picture)
it is not everything but the rest was the authendification wich somehow works fine. These executions also work (not the last one) with the help of this link: https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/SpotifyAPI.Web/Clients/Interfaces/IPlayerClient.cs
so i can get the types of Tracks and if it is paused or not but when it comes to the song name / id i dont know how to get that i tried with this last but it wont work it says: there is no argument that matches the necessary variable request "IPlayerClient.GetCurrentlyPlaying(PlayerCurrentlyPlayingRequest, CancellationToken)"
idk what to do im a total beginner... (and sorry for bad english)
GitHub
SpotifyAPI-NET/SpotifyAPI.Web/Clients/Interfaces/IPlayerClient.cs a...
:sound: A Client for the Spotify Web API, written in C#/.NET - JohnnyCrazy/SpotifyAPI-NET
4 Replies
Well, as you can tell, it needs two parameters
but i dont know wich and if i type in: (PlayerCurrentlyPlayingRequest, request) thats what i saw on the website it says these are not available in the current context and i dont know what to do there...
Here's the request type, an instance of this is needed for the first parameter: https://github.com/JohnnyCrazy/SpotifyAPI-NET/blob/master/SpotifyAPI.Web/Models/Request/PlayerCurrentlyPlayingRequest.cs
And a cancellation token you can just
new
up as well
Or not even, since it seems it defaults to default
So just pass the request and you're goodthank you so much i did not see that im trying to work with that ur the best