mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 22:56:25 +00:00
Fixed links and added some more regarding auth
This commit is contained in:
parent
a6f2baa492
commit
ebc5278055
@ -61,6 +61,8 @@ var config = SpotifyClientConfig
|
|||||||
var spotify = new SpotifyClient(config);
|
var spotify = new SpotifyClient(config);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For a real example, have a look at [Example.ASP](https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.ASP). This also uses the great package `AspNet.Security.OAuth.Spotify` which takes care of the OAuth flow inside of `ASP.NET`.
|
||||||
|
|
||||||
## Using Spotify.Web.Auth
|
## Using Spotify.Web.Auth
|
||||||
|
|
||||||
For cross-platform CLI and desktop apps (non `UWP` apps), `Spotify.Web.Auth` can be used to supply a small embedded Web Server for the code retrieval.
|
For cross-platform CLI and desktop apps (non `UWP` apps), `Spotify.Web.Auth` can be used to supply a small embedded Web Server for the code retrieval.
|
||||||
@ -102,3 +104,5 @@ private static async Task OnAuthorizationCodeReceived(object sender, Authorizati
|
|||||||
// do calls with spotify and save token?
|
// do calls with spotify and save token?
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For real examples, have a look at [Example.CLI.PersistentConfig](https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.CLI.PersistentConfig) and [Example.CLI.CustomHTML](https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.CLI.CustomHTML)
|
||||||
|
@ -71,7 +71,7 @@ protected override void OnActivated(IActivatedEventArgs args)
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
For a real example, have a look at the [UWP Example](https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/v6/SpotifyAPI.Web.Examples/Example.UWP)
|
For a real example, have a look at the [Example.UWP](https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.UWP), [Example.ASP](https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.ASP) or [Example.ASPBlazor](https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.ASPBlazor)
|
||||||
|
|
||||||
# Using Spotify.Web.Auth
|
# Using Spotify.Web.Auth
|
||||||
|
|
||||||
@ -103,4 +103,4 @@ private static async Task OnImplictGrantReceived(object sender, ImplictGrantResp
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
For real examples, have a look at [Example.CLI.PersistentConfig](https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/v6/SpotifyAPI.Web.Examples/Example.CLI.PersistentConfig) and [Example.CLI.CustomHTML](https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/v6/SpotifyAPI.Web.Examples/Example.CLI.CustomHTML)
|
For real examples, have a look at [Example.CLI.PersistentConfig](https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.CLI.PersistentConfig) and [Example.CLI.CustomHTML](https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Web.Examples/Example.CLI.CustomHTML)
|
||||||
|
Loading…
Reference in New Issue
Block a user