mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 22:56:25 +00:00
Added docs for proxy usage
This commit is contained in:
parent
dd77be8a8a
commit
eb0309c7cc
@ -52,6 +52,21 @@ _spotify = new SpotifyLocalAPI(new SpotifyLocalAPIConfig
|
||||
});
|
||||
```
|
||||
|
||||
## Proxy Settings
|
||||
|
||||
You can forward your proxy settings to the local api by using a field in the `SpotifyLocalAPIConfig`.
|
||||
|
||||
```cs
|
||||
_spotify = new SpotifyLocalAPI(new SpotifyLocalAPIConfig
|
||||
{
|
||||
ProxyConfig = new ProxyConfig() {
|
||||
Host = "127.0.0.1",
|
||||
Port = 8080
|
||||
// Additional values like Username and Password are available
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
## Anti-Virus Blocking Response
|
||||
|
||||
Some Anti-Virus Software blocks the response from spotify due wrong headers.
|
||||
|
18
SpotifyAPI.Docs/docs/SpotifyWebAPI/proxy.md
Normal file
18
SpotifyAPI.Docs/docs/SpotifyWebAPI/proxy.md
Normal file
@ -0,0 +1,18 @@
|
||||
## Proxy Settings
|
||||
|
||||
You can forward your proxy settings to the web api by using a field in the `SpotifyLocalAPIConfig`.
|
||||
|
||||
```cs
|
||||
ProxyConfig proxyConfig = new ProxyConfig()
|
||||
{
|
||||
Host = "127.0.0.1",
|
||||
Port = 8080
|
||||
// Additional values like Username and Password are available
|
||||
};
|
||||
|
||||
SpotifyWebAPI api = new SpotifyWebAPI(proxyConfig);
|
||||
// or
|
||||
WebAPIFactory webApiFactory = new WebAPIFactory(..., proxyConfig);
|
||||
SpotifyWebAPI api = await webApiFactory.GetWebApi();
|
||||
|
||||
```
|
@ -1,6 +1,7 @@
|
||||
# SpotifyAPI-NET Documentation
|
||||
|
||||
##About
|
||||
|
||||
This Library, written in C#/.NET, combines two independent SpotifyAPIs into one.
|
||||
|
||||
**Spotify's Web API** ([link](https://developer.spotify.com/web-api/))
|
||||
@ -16,6 +17,7 @@ Both combined can be used for any kind of application.
|
||||
---
|
||||
|
||||
##Installing
|
||||
|
||||
* Via NuGet Package:
|
||||
```cs
|
||||
Install-Package SpotifyAPI-NET
|
||||
@ -28,6 +30,13 @@ Install-Package SpotifyAPI-NET -pre
|
||||
---
|
||||
|
||||
##Projects
|
||||
|
||||
###[Spofy](https://github.com/eltoncezar/Spofy) by [@eltoncezar](https://github.com/eltoncezar)
|
||||
|
||||
> A Spotify mini player and notifier for Windows
|
||||
|
||||
###[Toastify](https://github.com/aleab/toastify) by [@aleab](https://github.com/aleab)
|
||||
|
||||
> Toastify adds global hotkeys and toast notifications to Spotify
|
||||
>
|
||||
> *Forked from [nachmore/toastify](https://github.com/nachmore/toastify)*
|
||||
|
@ -6,6 +6,7 @@ pages:
|
||||
- 'Getting started': 'SpotifyWebAPI/gettingstarted.md'
|
||||
- 'Examples': 'SpotifyWebAPI/examples.md'
|
||||
- 'Authentication': 'SpotifyWebAPI/auth.md'
|
||||
- 'Proxy': 'SpotifyWebAPI/proxy.md'
|
||||
- '- Albums': 'SpotifyWebAPI/albums.md'
|
||||
- '- Artists': 'SpotifyWebAPI/artists.md'
|
||||
- '- Browse': 'SpotifyWebAPI/browse.md'
|
||||
|
Loading…
Reference in New Issue
Block a user