Skip to content

Commit

Permalink
Added docs for configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyCrazy committed Sep 3, 2017
1 parent 9e6c118 commit 4351d21
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions SpotifyAPI.Docs/docs/SpotifyLocalAPI/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4351d21

Please sign in to comment.