Commit Graph

21 Commits

Author SHA1 Message Date
Alessandro Attard Barbini
dd77be8a8a Added support for proxy configuration (#224)
* Create ProxyConfig class + Unit tests

* Use ProxyConfig in SpotifyLocalAPI

* Refactor WebProxy creation in ProxyConfig

* Use ProxyConfig in SpotifyWebAPI

* Add ProxyConfig parameter in GetAlbumArt methods

* Add ProxyConfig to WebAPIFactory

* Add proxy settings to Example app

* Fix ArgumentNullException in GetAlbumArtUrl when not using proxy

* Performed requested changes

- Removed redundant "this".
- Added necessary null checks.
- Added a ProxyConfig property to SpotifyLocalAPIConfig and removed constructor overloads with it in SpotifyLocalAPI and RemoteHandler.

* Updated Example app
2018-03-25 19:39:19 +02:00
Jonas Dellinger
2008a6f07f Merge branch 'master' of github.com:JohnnyCrazy/SpotifyAPI-NET 2018-01-15 23:07:57 +01:00
Jonas Dellinger
729565dadb Code Cleanup 2018-01-15 23:07:50 +01:00
Alessandro Attard Barbini
b1365a6fea Fixed Query and QueryAsync methods (#212) 2018-01-15 23:05:58 +01:00
Bennet Sunder
aa8e940726 Refactored Query and QueryAsync Methord (#209) 2018-01-10 14:56:50 +01:00
Jonas Dellinger
1af1d37a35 Moved Encoding to ExtendedWebClient 2017-09-03 14:46:25 +02:00
Jonas Dellinger
163ed9b52f Merge branch 'master' of github.com:JohnnyCrazy/SpotifyAPI-NET 2017-09-03 14:45:10 +02:00
Jonas Dellinger
451d925d7d Added config for spotify local api 2017-09-03 14:44:11 +02:00
tyutony
04c1687cec fixed issues : Have exception if playing Chinese song #171 (#174) 2017-08-29 16:52:34 +02:00
Henning M. Stephansen
ba03526f19 #134 Adds User-Agent in the OAuth request due to recent changes in the Spotify API 2017-03-09 21:58:48 +01:00
Jonas Dellinger
281b684f5f Changed Host to 127.0.0.1 and added SSL workaround 2016-09-30 12:17:19 +02:00
Jonas Dellinger
3c82b0376b Merge pull request #106 from petrroll/configureAwaitFix
Configure await fix + removed bunch of unnecessary async/await before return
2016-09-09 14:47:09 +02:00
Petr Houška
3e7265a657 Async methods return Tasks instead of void. 2016-09-08 12:38:37 +02:00
Petr Houška
80f58df929 Fixed rest of awaits. 2016-09-08 12:06:24 +02:00
Jonas Dellinger
e0357ef2b1 Updated Port to HTTPS-Version 2016-09-03 00:40:55 +02:00
Johnny @PC
adeac7b409 Simplified String -> string 2016-03-31 12:08:23 +02:00
Daniel Häfele
c981b35085 Remove setting the WebClient.Proxy to null
It should be fine in most of the cases to just use the system proxy settings.
If anyone has issues with this approach, we can still make the WebClient.Proxy setting configurable somehow.
2015-11-26 21:17:37 +01:00
Johnny Dellinger @PC
96bcb7bd36 Some more refactoring. 2015-10-28 17:05:09 +01:00
mrnikbobjeff
49441bba95 Formatted and beautified code via codemaid
Organised using statements alphabetically
2015-10-17 00:44:35 +02:00
mrnikbobjeff
10c8944e05 Replaced all occurances of checking whether a string is empty via str == "" with String.IsNullOrEmpty(str)
sealed StringAttribute because it is only contains text as attribute
sealed SpotifyWebAPI class as it implements IDisposable
Changed Exception catching where the Exception is not used to ignore the Exception object
Removed Console.WriteLine("Exception: " + e.Message) int HttpProcessor.Process as it is a library function which might not be used in a console application
2015-10-17 00:31:01 +02:00
Johnny Dellinger @PC
45c71544f9 Full Rewrite & Cleanup (New documentation follows) 2015-07-07 18:11:11 +02:00