Commit Graph

99 Commits

Author SHA1 Message Date
Jonas Dellinger
73976e0d6b Added missing async methods 2018-07-27 00:29:10 +02:00
Jonas Dellinger
df53f75368 Fixed ResumePlayback and added overload for uri offset, closes #249 2018-07-18 22:13:01 +02:00
Boy van Amstel
be3175244d Fix typo in WebAPIFactory.cs filename (#251)
Resolves a build error.
2018-07-16 12:28:40 +02:00
Alessandro Attard Barbini
91b088169b Allow users to set ShowDialog when using WebAPIFactory (#239) 2018-04-24 17:19:06 +02:00
Qwx
cdceb6a57a Fixed Util ToUnixTimeMillisecondsPoly() to return long, since the timestamp cannot have decimal point. 2018-04-01 18:56:47 +03:00
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
Gruhlum
e52b9ef61a Add ReleaseDate (#230) 2018-03-25 18:29:21 +02:00
Lukas Wagner
3c25f49a94 added SnapshotId to FullPlaylist (#227) 2018-03-20 12:30:09 +01:00
Jonas Dellinger
4b40a1b477 Fixed DateTime to timestamp int --> double 2018-02-20 20:47:40 +01:00
Jonas Dellinger
05721ef9f7 Added missing docs 2018-01-15 23:32:21 +01:00
Jonas Dellinger
5559c84990
Added label property to FullAlbum
Fixes #199
2017-11-19 16:53:07 +01:00
Ludovic Debost
fddeb07214 PUT method for SeekPlayback (#190) 2017-10-27 17:23:45 +02:00
Jonas Dellinger
451d925d7d Added config for spotify local api 2017-09-03 14:44:11 +02:00
Jim
c74b210120 Changed to PUT method (#167) 2017-07-16 22:28:56 +02:00
Will Graham
17639a9b54 Add Audio Track Analysis models and API endpoint (#161)
* Add Audio Track Analysis models and API endpoint

* Update docs

* Add link to EchoNest archived docs for AudioAnalysis model
2017-07-02 19:37:11 +02:00
Jim
7ea1a1af48 Update WebApiFactory.cs (#153)
This could fix the ImplicitGrantAuth for http paths without breaking anything. ´TrimEnd` is there for when there is no path (the builder will add a `/` which will make the callback url invalid otherwise.
2017-06-10 21:50:16 +02:00
Jakub Syty
512d3d76ad Async auth support for ClientCredentialsAuth (#148) 2017-06-06 18:56:26 +02:00
Jonas Dellinger
3eefa5a2dc Fixed Header add 2017-05-31 19:54:13 +02:00
Jonas Dellinger
629a09a980 Removed Proxy = null 2017-05-31 18:24:22 +02:00
Jonas Dellinger
1c6f317dda Added Status Code to models 2017-05-31 18:17:07 +02:00
Jonas Dellinger
1253d02da7 Switched from WebClient to HTTPClient 2017-05-31 17:31:41 +02:00
Jonas Dellinger
2543ed2f2f Added new player endpoints 2017-05-31 17:31:41 +02:00
Jonas Dellinger
3ebb446745 Added new endpoint "recently played" 2017-03-02 22:28:55 +01:00
Jack Ryder
31a3b5cdce added collab playlist scope 2016-09-19 20:32:15 +01:00
Petr Houška
80f58df929 Fixed rest of awaits. 2016-09-08 12:06:24 +02:00
Petr Houška
a67305cb14 Reworked async/await in WebAPI 2016-09-08 08:30:33 +02:00
Johnny @PC
8bee9f2127 Code cleanup/docs in SpotifyWebAPI.cs 2016-08-24 13:17:46 +02:00
Petr Houška
83ea4cd9e7 Fixed docs for RetryErrorCodes. 2016-08-23 19:18:04 +02:00
Petr Houška
9952f3e939 Generalized Download list functions. 2016-08-23 19:13:11 +02:00
Petr Houška
4598410016 Fixed UseAutoRetry doc comment. 2016-08-23 18:44:17 +02:00
Petr Houška
78387da0ef Turned automatic retry off by default. 2016-08-14 04:29:01 +02:00
Petr Houška
4b05542696 Added timeout for retry. 2016-08-14 04:27:32 +02:00
Petr Houška
ea317dcbeb Removes duplicated code + adds support for retry to Alt functions. 2016-08-14 04:14:16 +02:00
Petr Houška
cf2d2f632b Removed code duplicity. 2016-08-14 03:49:39 +02:00
Petr Houška
0250131345 Updates Download and UploadData functions. 2016-08-14 03:39:35 +02:00
Petr Houška
9ccd257f43 Removed some code duplication. 2016-08-14 03:24:09 +02:00
Johnny @PC
0f993ceda5 Cleanup HTTPServer and more stuff 2016-07-31 16:24:27 +02:00
Johnny @PC
0cefd0ac13 Removed wrong factory 2016-07-31 16:19:58 +02:00
Johnny @PC
417869548a Added additional constructor to WebAPIFactory 2016-07-31 16:18:42 +02:00
Jonas Dellinger
409a444d53 Merge pull request #92 from jholzer/master
Stability improvement:
2016-07-31 15:56:17 +02:00
Jürgen
4699246068 Adapted code style 2016-07-30 00:19:57 +02:00
Jürgen
1699519c95 Renamed AuthenticationFactory to WebApiFactory (better description of what the class does...) 2016-07-24 23:58:45 +02:00
Jonas Dellinger
a5c584a8d9 Merge pull request #94 from nphmuller/NullRefInApiCall
Added null check to fix NullReferenceException in api call.
2016-07-23 23:47:24 +02:00
Nick Muller
c3a63d71e4 Added empty json container if server response is empty.
This fixes a possible NullReferenceException, which at least occurred in every call to SaveAlbums().
2016-07-23 23:35:23 +02:00
Jürgen
961f25a487 - Changes from manual reading of header content to Linq-approach (pro: no more chance of deadlocks in StreamReadLine)
- Flush output stream and close it
2016-07-23 19:53:02 +02:00
Jonas Dellinger
0b259c3da1 Merge pull request #93 from nphmuller/CheckSavedAlbumsUrl
Corrected url in CheckSavedAlbum method.
2016-07-23 19:40:56 +02:00
Nick Muller
59f9c1aa98 Corrected url in CheckSavedAlbum method. 2016-07-23 18:36:15 +02:00
Jürgen Holzer
234a522f8f Cleaning up after timeout
Proper Re-Use is now possible
2016-07-20 09:56:05 +02:00
Jürgen
d21e84476c AuthenticationFactory 2016-07-19 21:15:22 +02:00
Jürgen
8dde236256 Stability improvement:
Processing in separate threat may cause racing condition and timeouts in browser.
By putting processing in original threat we get a more sequential processing and more stability.
2016-07-19 00:04:27 +02:00