Spotify.NET/docs/SpotifyWebApi/gettingstarted.md

40 lines
947 B
Markdown
Raw Normal View History

2015-07-09 11:46:30 +01:00
#SpotifyWebAPI
This API provides full access to the new SpotifyWebAPI introduced [here](https://developer.spotify.com/web-api/).
With it, you can search for Tracks/Albums/Artists and also get User-based information.
It's also possible to create new playlists and add tracks to it.
---
#Getting started
The API features all currently available features and also provides some examples to get things rolling!
Full-Method Reference:
* [Albums](test)
[Examples](/SpotifyWebApi/examples)
---
#Properties
##UseAuth
Wether auth should be used or not. User-stuff can only be fetched with auth.
**NOTE:** If you use auth, you need to provide both, `TokenType` and `AccessToken`
2015-07-23 20:42:34 +01:00
```
2015-07-09 11:46:30 +01:00
_spotify.UseAuth = false;
```
2015-07-23 20:42:34 +01:00
##TokenType
2015-07-09 11:46:30 +01:00
The token-type. Normally "Bearer" or "Basic".
2015-07-23 20:42:34 +01:00
```
2015-07-09 11:46:30 +01:00
_spotify.TokenType = "XXXXXXXXXXXXXXXX";
```
2015-07-23 20:42:34 +01:00
##AccessToken
2015-07-09 11:46:30 +01:00
The access-token received by your auth-type.
2015-07-23 20:42:34 +01:00
```
2015-07-09 11:46:30 +01:00
_spotify.AccessToken = "XXXXXXXXXXXXXXXX";
2015-07-23 20:42:34 +01:00
```