Skip to content

Commit 4351d21

Browse files
committed
Added docs for configuration
1 parent 9e6c118 commit 4351d21

File tree

1 file changed

+12
-0
lines changed
  • SpotifyAPI.Docs/docs/SpotifyLocalAPI

1 file changed

+12
-0
lines changed

SpotifyAPI.Docs/docs/SpotifyLocalAPI/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ public static void Main(String[] args)
4040
}
4141
```
4242

43+
## Configuration
44+
45+
Different spotify versions often require different configuration. Some versions run their web-helper on port `4371`, others on `4381`. Also, some use `https`, and others use `http`. You can use `SpotifyLocalAPIConfig` to configure the API:
46+
47+
```cs
48+
_spotify = new SpotifyLocalAPI(new SpotifyLocalAPIConfig
49+
{
50+
Port = 4371,
51+
HostUrl = "https://127.0.0.1"
52+
});
53+
```
54+
4355
## Anti-Virus Blocking Response
4456

4557
Some Anti-Virus Software blocks the response from spotify due wrong headers.

0 commit comments

Comments
 (0)