From 4351d21fd7de7a212572b4c85865034acc1ec8f6 Mon Sep 17 00:00:00 2001 From: Jonas Dellinger Date: Sun, 3 Sep 2017 14:56:52 +0200 Subject: [PATCH] Added docs for configuration --- SpotifyAPI.Docs/docs/SpotifyLocalAPI/index.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/SpotifyAPI.Docs/docs/SpotifyLocalAPI/index.md b/SpotifyAPI.Docs/docs/SpotifyLocalAPI/index.md index ff9bcb77..5c3d5e3b 100644 --- a/SpotifyAPI.Docs/docs/SpotifyLocalAPI/index.md +++ b/SpotifyAPI.Docs/docs/SpotifyLocalAPI/index.md @@ -40,6 +40,18 @@ public static void Main(String[] args) } ``` +## Configuration + +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: + +```cs +_spotify = new SpotifyLocalAPI(new SpotifyLocalAPIConfig +{ + Port = 4371, + HostUrl = "https://127.0.0.1" +}); +``` + ## Anti-Virus Blocking Response Some Anti-Virus Software blocks the response from spotify due wrong headers.