Commit Graph

333 Commits

Author SHA1 Message Date
Jonas Dellinger
c6de994f91
Update auth.md 2019-03-18 22:06:33 +01:00
Jonas Dellinger
2c093a75a0 Added escaped search method, fixes #131 2019-03-18 21:58:50 +01:00
Jonas Dellinger
fe9d02bd4f Merge branch 'master' of github.com:JohnnyCrazy/SpotifyAPI-NET 2019-03-18 21:24:18 +01:00
Jonas Dellinger
3917fbefdc Code Cleanup and ImplictGrantAuth name fix, fixes #320 2019-03-18 21:24:09 +01:00
Jordan
ea70fbc77b Secure, user-friendly and feature-rich authorization method (#286)
* Add new auth method and api factory for the auth method

* Add process documentation

* Solve random crash issues related to token collection

* Add customizable html responses, add more process control

* Add show dialog support, fix nulled html response

* Fix false trigger spam of access expiry event

* Add auto-retry GetToken, add fire auth fail on timeout

* Improve auto-refresh and refresh auth token validity checks

* Add ability to change number of get token retries

* Add get web API request cancelling

* Solve compiler warning

* Remove comment links, rename secure auth for clarity

* Rename secure auth for clarity in the docs

* Improve token swap usage example in docs

* Abstract the exchange server doc info for clarity

* Fix simontaen SpotifyTokenSwap link

* Change access expiry timing to be skippable

* Adapt TokenSwap for new convention, separate autorefresh and timer options
2019-03-18 17:20:17 +01:00
Jonas Dellinger
278927f704 Merge branch 'playlist_change_28_02_19' 2019-03-16 14:52:34 +01:00
Mike Lavender
f173e23e1a Support uploading an image for a playlist (#318)
* Support uploading an image for a playlist

* Support uploading a playlist image

* Support uploading a playlist image

Support uploading a playlist image

* Add support for new playlist endpoint without userid
2019-03-06 20:57:36 +01:00
Jonas Dellinger
ea5d5248d3 prepare for playlist change 2019-02-19 22:53:36 +01:00
Jonas Dellinger
f31af2395c Merge branch 'master' of github.com:JohnnyCrazy/SpotifyAPI-NET 2019-02-19 22:24:18 +01:00
Jonas Dellinger
4870d15c76 Updated versions 2019-02-19 22:18:24 +01:00
Jonas Dellinger
92c063e35a
Update README.md 2019-01-10 01:06:35 +01:00
Jonas Dellinger
3c98a63873 Added error handling for invalid json errors, 500 gateway etc., fixes #303 2018-12-22 21:40:31 +01:00
Jonas Dellinger
a2b94536bc Restore example 2018-12-22 21:39:46 +01:00
Jonas Dellinger
734c051759 Updated Readme and doc styles 2018-12-22 21:27:43 +01:00
Jonas Dellinger
18863f1733 Fix example 2018-12-22 21:15:29 +01:00
Jonas Dellinger
3b7fc1a203 Merge branch 'master' of github.com:JohnnyCrazy/SpotifyAPI-NET 2018-12-22 21:13:25 +01:00
Jonas Dellinger
2f8197359d Updated docs & Updated deps, should fix #304 2018-12-22 21:12:57 +01:00
Steven
30d396618b Added app remote control scope (#309)
* Added app-remote-control authorization scope

* Fixed tabs to spaces
2018-12-17 22:07:57 +01:00
Florian Jäckel
467984c6f8 Clear DefaultRequestHeaders when adding a new header dictionary (#302) 2018-10-27 13:56:30 +02:00
Florian Jäckel
9859e9d4ae Check if the header exists and replace it rather than add it again (#299) 2018-10-24 23:21:13 +02:00
Jonas Dellinger
f94fbc82f3
Update README.md 2018-10-01 20:00:22 +02:00
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