Getting Started
#
Adding SpotifyAPI-NET to your projectThe library can be added to your project via the following methods:
#
Package Managers- .NET CLI
- Package Manager
- Package Reference
#
Add DLL ManuallyYou can also grab the latest compiled DLL from our GitHub Releases Page. It can be added to your project via Visual Studio or directly in your .csproj
:
#
Compile Yourself#
First API CallsYou're now ready to issue your first calls to the Spotify API, a small console example:
tip
Notice that the spotify api does not allow unauthorized API access. Wondering where you should get an access token from? For a quick test, head over to the Spotify Developer Console and generate an access token with the required scopes! For a permanent solution, head over to the authentication guides.
There is no online documentation for every available API call, but XML inline docs are available:
All calls have the Spotify Web API documentation reference attached as a remark.
#
Query/Body ParametersIf an API endpoint has query or body parameters, a request model can be supplied to the method
If a query/body parameter is required, it has to be supplied in the constructor of the request model. In the background, empty/null checks are also performed to make sure required parameters are not empty/null. If it is optional, it can be supplied as a property to the request model.
#
GuidesAll other relevant topics are covered in the "Guides" and Authentication Guides section in the sidebar!