Commit Graph

462 Commits

Author SHA1 Message Date
Alessandro Attard Barbini
ec99296f7d Added missing currently_playing_type field to PlaybackContext (#292) 2018-10-01 19:53:04 +02:00
Philip
6591b5f64c Changed description of AddPlaylistTrack/Async (#290)
* Changed description of AddPlaylistTrack/Async

* Changed description of RemovePlaylistTrack/Async
2018-09-22 17:07:44 +02:00
Jonas Dellinger
6056fdf453 Added various fields, fixes #289 2018-09-21 14:51:30 +02:00
Jonas Dellinger
70a57579cf Merge branch 'master' of github.com:JohnnyCrazy/SpotifyAPI-NET 2018-09-21 14:45:22 +02:00
Jonas Dellinger
e7f40474c2 Added method to RefreshToken for auth code flow
Fixed some includes
2018-09-21 14:45:14 +02:00
Justin Swanson
67cb3e42f1 TooManyRequests Handling (#282)
* SpotifyHttpStatusCode

A small supplementary enum for Spotify specific codes.  Only contains TooManyRequests currently, but more can be added.

* TooManyRequests Retry Handling

Will now parse and wait the Spotify recommended wait time.  Also has the option to not consume a retry attempt on this type of error

* TryGetTooManyRequests refactored to GetTooManyRequests

To keep the library consistent

* Removed SpotifyHttpStatusCode
2018-09-21 14:42:52 +02:00
kg73
fa0f3e2d90 Modified SpotifyWebClient to use a single HttpClient per class lifeti… (#287)
* Modified SpotifyWebClient to use a single HttpClient per class lifetime. This will allow the HttpClient to properly pool connections.
Reference: https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/calling-a-web-api-from-a-net-client

* Added suggested changes. Moved ProxyConfig to the constructor of SpotifyWebClient.
2018-09-17 14:44:22 +02:00
kg73
81fe1763f4 Added position_ms parameter to ResumePlayback. position_ms sets the seek time on the track, whereas offset deals with the song order in a playlist or list of tracks. (#288) 2018-09-17 14:44:01 +02:00
Jonas Dellinger
5e134df500
Update README.md 2018-09-04 14:46:22 +02:00
Jonas Dellinger
9796632c98
Update README.md 2018-09-04 14:46:01 +02:00
Jonas Dellinger
a302694da8 Cleanup 2018-09-04 14:41:35 +02:00
Jonas Dellinger
2f8bf6877f Added support for .net 4.6 2018-09-04 14:39:07 +02:00
Jonas Dellinger
f97fd83cca Fixed nuspecs 2018-08-24 15:32:20 +02:00
Jonas Dellinger
4b7b2179b9 Fixed publish script 2018-08-24 15:12:02 +02:00
Jonas Dellinger
f6ef3daa13 Disable XML comment spam 2018-08-24 14:57:37 +02:00
Jonas Dellinger
05d1f4de02 Updated nuspecs and publish script 2018-08-24 14:51:48 +02:00
Jonas Dellinger
601b74d3c1 Merge branch 'v3' 2018-08-24 14:31:41 +02:00
Jonas Dellinger
b5b09432b3 Enable XML Docs and nuget specs 2018-08-24 14:30:50 +02:00
Gruhlum
a82bbbf5b7 Adds collaborative and description to UpdatePlaylist and CreatePlaylist 2018-08-24 14:13:25 +02:00
Gruhlum
acc59d11bf Adds collaborative bool and description to UpdatePlaylist 2018-08-24 14:12:49 +02:00
Jonas Dellinger
5c2a901f75 Updated to .NET Core and reimplemented auth strategies 2018-08-24 14:10:13 +02:00
Dan Spiteri
e274025c6c Update Scope.cs (#263)
Add missing "user-read-currently-playing" scope
2018-08-06 15:02:40 +02:00
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
Jonas Dellinger
6763d3cccc Made UserAgent configurable and docs 2018-07-18 21:51:56 +02:00
Renato Albuquerque
1cae73b1c1 Updated the User-Agent header for the OAuth request (#252) 2018-07-18 21:30:28 +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
Jonas Dellinger
6646f8d4a8 Fixed track change event not firing correctly 2018-05-06 14:49:44 +02:00
Jonas Dellinger
35b531ec2b
Added Spotify Oculus to docs, closes 240 2018-04-25 20:40:16 +02:00
Alessandro Attard Barbini
91b088169b Allow users to set ShowDialog when using WebAPIFactory (#239) 2018-04-24 17:19:06 +02:00
Brandon
e661d8f35b Update Newtonsoft.Json dependency version (#235) 2018-04-24 17:18:26 +02:00
Jonas Dellinger
a24b667eb9 Added Tests for Util class and some cleanup 2018-04-01 18:58:26 +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
Jonas Dellinger
e40375865e
Donation link was wrong - It's past bedtime 2018-03-26 01:30:23 +02:00
Jonas Dellinger
3c44c41116 Last try... 2018-03-26 01:24:28 +02:00
Jonas Dellinger
030f292fd0 Maybe like this? 2018-03-26 01:22:36 +02:00
Jonas Dellinger
79352f1fae Well...you should really add the link... 2018-03-26 01:14:01 +02:00
Jonas Dellinger
1551937dee Added donation link 2018-03-26 01:13:14 +02:00
Jonas Dellinger
eb0309c7cc Added docs for proxy usage 2018-03-25 19:56:59 +02: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
Jonas Dellinger
023520d3de Small code cleanup 2018-03-25 18:32:46 +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
Alessandro Attard Barbini
159b60331e Fixed occasional COMException in GetSpotifyVolumeObject (#222)
* Added volume controls in Example app

* Fixed occasional COMException when using Get- or SetSpotifyVolume

This exception only happens if Spotify is using an audio device different from the default one. Such a thing is only possible (as of v1.0.75.483.g7ff4a0dc) when using the "--enable-audio-graph" command line argument, that makes available the "Playback device" advanced option in Spotify.
2018-03-12 00:08:37 +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
a6ffa961b2 Added another local api port to docs 2018-01-15 23:18:04 +01: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