Commit Graph

193 Commits

Author SHA1 Message Date
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
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
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
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
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
Alessandro Attard Barbini
5ccef6fd14 Raise OnTrackChange event for "other" tracks as well (#204)
* Raise OnTrackChange event for "other" tracks as well

* Add null checks in Example project
2018-01-10 14:56:58 +01:00
Bennet Sunder
aa8e940726 Refactored Query and QueryAsync Methord (#209) 2018-01-10 14:56:50 +01:00
Jonas Dellinger
5559c84990
Added label property to FullAlbum
Fixes #199
2017-11-19 16:53:07 +01:00
Ferdin Handoko
26b5f8054d add api to check if spotify is installed (#193) 2017-11-09 15:37:10 +01:00
Philipp Drebes
a70bc5fc09 Refactored SpotifyUri Parsing (#194)
* refactored SpotifyUri parsing

* unit tests for SpotifyUri class

* added missing file reference in SpotifyAPI.csproj

* updated NuGet packages in SpotifyAPI.Tests and reverted inline TryParse variable declarations in SpotifyUri.cs
2017-11-09 15:36:53 +01:00
Ludovic Debost
fddeb07214 PUT method for SeekPlayback (#190) 2017-10-27 17:23:45 +02:00
Jonas Dellinger
9e6c11818f Updated local port and scheme 2017-09-03 14:53:04 +02: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
Jonas Dellinger
06adc23abb Added source to publish.cmd 2017-07-16 23:57:02 +02:00
Jonas Dellinger
8f76b4c36f Fixed publish script, please? 2017-07-16 23:52:43 +02:00
Jonas Dellinger
6cf77f58a2 Testing build script 2017-07-16 23:30:40 +02:00
Jonas Dellinger
3ca4578c34 Added nuget commands to the script 2017-07-16 23:14:59 +02:00
Jonas Dellinger
c020172469 Added publish script for nuget 2017-07-16 22:47:06 +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
Alessandro AB
429f5e50b0 Fixed GetAlbumArtUrl always returning empty string (#156)
* Fixed GetAlbumArtUrl always returning empty string

* Simplified the regex pattern
2017-06-20 21:31:41 +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
shadowlif
a932aaadc8 Added method to check for compatible OS (#147)
* Added method to check for compatible OS

* Standardized const variables

* Fixed typo

* Negation of usage in if's

* Moved const variables

* simplified IsOSCompatible
2017-06-04 00:15:56 +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
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
3ebb446745 Added new endpoint "recently played" 2017-03-02 22:28:55 +01:00
Jonas Dellinger
281b684f5f Changed Host to 127.0.0.1 and added SSL workaround 2016-09-30 12:17:19 +02:00
Jack Ryder
31a3b5cdce added collab playlist scope 2016-09-19 20:32:15 +01:00
Jonas Dellinger
ec8b7a3d3d Made some LocalAPI methods async - Updated example, now without SynchronizingObject 2016-09-09 14:56:37 +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