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
A
Angius•16d ago
Well, as you can tell, it needs two parameters
O
Ole•16d ago
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...
A
Angius•16d ago
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 goodO
Ole•16d ago
thank you so much i did not see that im trying to work with that ur the best
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
52KMembers
View on DiscordWant results from more Discord servers?
More Posts✅ hey, can someone please fix this for me? it keeps giving me errors✅ WPF - how to approach a treeview displaying different types at different levels via MVVMI'm just learning WPF - so seeking some design advice. I'm designing a Visual Studio extension to viDoes hangfire has a redudant delay?I`ve created an Job that deletes object from db at certain time, but it looks like it is being delayhelp needed with accesing a variable in another scriptim trying to acces isgrounded in another script and have it be the same as hi but i get this errorIssue with websocket within a serviceIm having troubles using a websocket service within other parts of my projects, cannot use the Send HelpI'm new to C# in VSC and i have a Problem wich is why i can't execute the Code. What am i supposed t✅ Checking data from SQL databasehelp on verge of tears✅ How to export data from datagridview into excel fileI've tried like a few ways and cant really make sense of it, if someone can guide me through it it wProblem with Material Design Lib in wpfI have a Combobox item in Stack panel. Im using Material Desing for automatic styling but the Popup✅ Title: Issues with Authentication and Authorization using JWT with AutoRender Mode in Blazor NET8Hello friends,
I am currently facing challenges with Authentication and Authorization using JWT wit✅ How do I reference a specific private instance of a classI would like to know how I could reference a specific instance of a class, if the class is private aReceiving Game Controller Input while Minimized (WinForms C#)Pretty general question here. How would I go about receiving input from my user while they aren't tprocess startIve been trying to figure out why the proccess.start() hasnt been working✅ Configurations say that appsettings is returning nullBasically, i have a configuration and i'm trying to access a value from my appsettings, and all that✅ ASP.NET Core Web Api + SignalRHi, I have an API deployed on IIS but when a person wants to access it they get an error: "ERR_CONNE✅ .NET sdk not workingSo, I've installed the .NET sdk and did what I was told, but it's still not being detected by vscode