Spotify.NET/SpotifyAPI.Docs/versioned_docs/version-5.1.1/web/proxy.md

19 lines
394 B
Markdown
Raw Normal View History

2019-08-16 23:40:04 +01:00
---
2020-05-31 16:21:17 +01:00
id: proxy
2020-05-13 17:25:42 +01:00
title: Proxy Settings
sidebar_label: Proxy Settings
---
2018-03-25 18:56:59 +01:00
You can forward your proxy settings to the web api by using a field in the `SpotifyLocalAPIConfig`.
2019-08-16 23:40:04 +01:00
```csharp
ProxyConfig proxyConfig = new ProxyConfig()
2018-03-25 18:56:59 +01:00
{
Host = "127.0.0.1",
Port = 8080
// Additional values like Username and Password are available
};
SpotifyWebAPI api = new SpotifyWebAPI(proxyConfig);
```