├── .gitattributes
├── .gitignore
├── Assets
└── spotify.netstandard.png
├── CHANGELOG.md
├── LICENSE
├── NUGET.md
├── README.md
└── Spotify.NetStandard
├── Spotify.NetStandard.Test
├── Spotify.NetStandard.Test.csproj
├── SpotifyClientApiTest.cs
├── SpotifyClientAuthTest.cs
├── SpotifyClientTest.cs
├── Usings.cs
└── appsettings.example.json
├── Spotify.NetStandard.sln
└── Spotify.NetStandard
├── Client
├── Authentication
│ ├── AccessToken.cs
│ ├── Enums
│ │ └── TokenType.cs
│ └── Internal
│ │ ├── AccessCode.cs
│ │ ├── AuthenticationCache.cs
│ │ ├── AuthenticationClient.cs
│ │ ├── AuthenticationResponse.cs
│ │ ├── ImplicitGrant.cs
│ │ └── VerifierChallenge.cs
├── Exceptions
│ ├── AuthCodeStateException.cs
│ ├── AuthCodeValueException.cs
│ ├── AuthCodeVerifierRequiredException.cs
│ ├── AuthException.cs
│ ├── AuthTokenRequiredException.cs
│ ├── AuthTokenStateException.cs
│ └── AuthTokenValueException.cs
├── Interfaces
│ ├── ISpotifyApi.cs
│ └── ISpotifyClient.cs
├── Internal
│ ├── Extensions.cs
│ ├── Helpers.cs
│ ├── SimpleServiceClient.cs
│ ├── SimpleServiceResult.cs
│ ├── SpotifyApi.cs
│ └── SpotifyClient.cs
└── SpotifyClientFactory.cs
├── Enums
├── FollowType.cs
├── LookupType.cs
├── NavigateType.cs
├── RepeatState.cs
└── TimeRange.cs
├── Requests
├── Cursor.cs
├── DevicesRequest.cs
├── IncludeGroup.cs
├── Page.cs
├── PlaybackRequest.cs
├── PlaylistReorderRequest.cs
├── PlaylistRequest.cs
├── PlaylistTracksRequest.cs
├── PositionRequest.cs
├── PositionUriRequest.cs
├── PublicRequest.cs
├── Scope.cs
├── ScopeExtensions.cs
├── SearchType.cs
├── TuneableTrack.cs
├── UriListRequest.cs
└── UriRequest.cs
├── Responses
├── Actions.cs
├── Album.cs
├── Artist.cs
├── AudioAnalysis.cs
├── AudioFeatures.cs
├── Audiobook.cs
├── Author.cs
├── AvailableGenreSeeds.cs
├── AvailableMarkets.cs
├── BaseResponse.cs
├── Bools.cs
├── Category.cs
├── Chapter.cs
├── Content.cs
├── ContentResponse.cs
├── Context.cs
├── Copyright.cs
├── CurrentlyPlaying.cs
├── CursorPaging.cs
├── Device.cs
├── Devices.cs
├── Disallows.cs
├── Episode.cs
├── ErrorResponse.cs
├── ExternalId.cs
├── ExternalUrl.cs
├── Followers.cs
├── Image.cs
├── Internal
│ ├── ContentCursorResponse.cs
│ └── InternalResponse.cs
├── LinkedTrack.cs
├── LookupResponse.cs
├── Narrator.cs
├── Paging.cs
├── PlayHistory.cs
├── Playlist.cs
├── PlaylistTrack.cs
├── PrivateUser.cs
├── PublicUser.cs
├── Queue.cs
├── RecommendationSeed.cs
├── RecommendationsResponse.cs
├── ResumePoint.cs
├── SavedAlbum.cs
├── SavedEpisode.cs
├── SavedShow.cs
├── SavedTrack.cs
├── Section.cs
├── Segment.cs
├── Show.cs
├── SimplifiedAlbum.cs
├── SimplifiedArtist.cs
├── SimplifiedAudiobook.cs
├── SimplifiedChapter.cs
├── SimplifiedCurrentlyPlaying.cs
├── SimplifiedEpisode.cs
├── SimplifiedPlaylist.cs
├── SimplifiedShow.cs
├── SimplifiedTrack.cs
├── Snapshot.cs
├── Status.cs
├── TimeInterval.cs
├── Track.cs
└── TrackRestriction.cs
├── Spotify.NetStandard.csproj
├── Spotify.NetStandard.xml
└── Usings.cs
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.suo
8 | *.user
9 | *.userosscache
10 | *.sln.docstates
11 |
12 | # User-specific files (MonoDevelop/Xamarin Studio)
13 | *.userprefs
14 |
15 | # Build results
16 | [Dd]ebug/
17 | [Dd]ebugPublic/
18 | [Rr]elease/
19 | [Rr]eleases/
20 | x64/
21 | x86/
22 | bld/
23 | [Bb]in/
24 | [Oo]bj/
25 | [Ll]og/
26 |
27 | # Visual Studio 2015/2017 cache/options directory
28 | .vs/
29 | # Uncomment if you have tasks that create the project's static files in wwwroot
30 | #wwwroot/
31 |
32 | # Visual Studio 2017 auto generated files
33 | Generated\ Files/
34 |
35 | # MSTest test Results
36 | [Tt]est[Rr]esult*/
37 | [Bb]uild[Ll]og.*
38 |
39 | # NUNIT
40 | *.VisualState.xml
41 | TestResult.xml
42 |
43 | # Build Results of an ATL Project
44 | [Dd]ebugPS/
45 | [Rr]eleasePS/
46 | dlldata.c
47 |
48 | # Benchmark Results
49 | BenchmarkDotNet.Artifacts/
50 |
51 | # .NET Core
52 | project.lock.json
53 | project.fragment.lock.json
54 | artifacts/
55 | **/Properties/launchSettings.json
56 |
57 | # StyleCop
58 | StyleCopReport.xml
59 |
60 | # Files built by Visual Studio
61 | *_i.c
62 | *_p.c
63 | *_i.h
64 | *.ilk
65 | *.meta
66 | *.obj
67 | *.iobj
68 | *.pch
69 | *.pdb
70 | *.ipdb
71 | *.pgc
72 | *.pgd
73 | *.rsp
74 | *.sbr
75 | *.tlb
76 | *.tli
77 | *.tlh
78 | *.tmp
79 | *.tmp_proj
80 | *.log
81 | *.vspscc
82 | *.vssscc
83 | .builds
84 | *.pidb
85 | *.svclog
86 | *.scc
87 |
88 | # Chutzpah Test files
89 | _Chutzpah*
90 |
91 | # Visual C++ cache files
92 | ipch/
93 | *.aps
94 | *.ncb
95 | *.opendb
96 | *.opensdf
97 | *.sdf
98 | *.cachefile
99 | *.VC.db
100 | *.VC.VC.opendb
101 |
102 | # Visual Studio profiler
103 | *.psess
104 | *.vsp
105 | *.vspx
106 | *.sap
107 |
108 | # Visual Studio Trace Files
109 | *.e2e
110 |
111 | # TFS 2012 Local Workspace
112 | $tf/
113 |
114 | # Guidance Automation Toolkit
115 | *.gpState
116 |
117 | # ReSharper is a .NET coding add-in
118 | _ReSharper*/
119 | *.[Rr]e[Ss]harper
120 | *.DotSettings.user
121 |
122 | # JustCode is a .NET coding add-in
123 | .JustCode
124 |
125 | # TeamCity is a build add-in
126 | _TeamCity*
127 |
128 | # DotCover is a Code Coverage Tool
129 | *.dotCover
130 |
131 | # AxoCover is a Code Coverage Tool
132 | .axoCover/*
133 | !.axoCover/settings.json
134 |
135 | # Visual Studio code coverage results
136 | *.coverage
137 | *.coveragexml
138 |
139 | # NCrunch
140 | _NCrunch_*
141 | .*crunch*.local.xml
142 | nCrunchTemp_*
143 |
144 | # MightyMoose
145 | *.mm.*
146 | AutoTest.Net/
147 |
148 | # Web workbench (sass)
149 | .sass-cache/
150 |
151 | # Installshield output folder
152 | [Ee]xpress/
153 |
154 | # DocProject is a documentation generator add-in
155 | DocProject/buildhelp/
156 | DocProject/Help/*.HxT
157 | DocProject/Help/*.HxC
158 | DocProject/Help/*.hhc
159 | DocProject/Help/*.hhk
160 | DocProject/Help/*.hhp
161 | DocProject/Help/Html2
162 | DocProject/Help/html
163 |
164 | # Click-Once directory
165 | publish/
166 |
167 | # Publish Web Output
168 | *.[Pp]ublish.xml
169 | *.azurePubxml
170 | # Note: Comment the next line if you want to checkin your web deploy settings,
171 | # but database connection strings (with potential passwords) will be unencrypted
172 | *.pubxml
173 | *.publishproj
174 |
175 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
176 | # checkin your Azure Web App publish settings, but sensitive information contained
177 | # in these scripts will be unencrypted
178 | PublishScripts/
179 |
180 | # NuGet Packages
181 | *.nupkg
182 | # The packages folder can be ignored because of Package Restore
183 | **/[Pp]ackages/*
184 | # except build/, which is used as an MSBuild target.
185 | !**/[Pp]ackages/build/
186 | # Uncomment if necessary however generally it will be regenerated when needed
187 | #!**/[Pp]ackages/repositories.config
188 | # NuGet v3's project.json files produces more ignorable files
189 | *.nuget.props
190 | *.nuget.targets
191 |
192 | # Microsoft Azure Build Output
193 | csx/
194 | *.build.csdef
195 |
196 | # Microsoft Azure Emulator
197 | ecf/
198 | rcf/
199 |
200 | # Windows Store app package directories and files
201 | AppPackages/
202 | BundleArtifacts/
203 | Package.StoreAssociation.xml
204 | _pkginfo.txt
205 | *.appx
206 |
207 | # Visual Studio cache files
208 | # files ending in .cache can be ignored
209 | *.[Cc]ache
210 | # but keep track of directories ending in .cache
211 | !*.[Cc]ache/
212 |
213 | # Others
214 | ClientBin/
215 | ~$*
216 | *~
217 | *.dbmdl
218 | *.dbproj.schemaview
219 | *.jfm
220 | *.pfx
221 | *.publishsettings
222 | orleans.codegen.cs
223 |
224 | # Including strong name files can present a security risk
225 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
226 | #*.snk
227 |
228 | # Since there are multiple workflows, uncomment next line to ignore bower_components
229 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
230 | #bower_components/
231 |
232 | # RIA/Silverlight projects
233 | Generated_Code/
234 |
235 | # Backup & report files from converting an old project file
236 | # to a newer Visual Studio version. Backup files are not needed,
237 | # because we have git ;-)
238 | _UpgradeReport_Files/
239 | Backup*/
240 | UpgradeLog*.XML
241 | UpgradeLog*.htm
242 | ServiceFabricBackup/
243 | *.rptproj.bak
244 |
245 | # SQL Server files
246 | *.mdf
247 | *.ldf
248 | *.ndf
249 |
250 | # Business Intelligence projects
251 | *.rdl.data
252 | *.bim.layout
253 | *.bim_*.settings
254 | *.rptproj.rsuser
255 |
256 | # Microsoft Fakes
257 | FakesAssemblies/
258 |
259 | # GhostDoc plugin setting file
260 | *.GhostDoc.xml
261 |
262 | # Node.js Tools for Visual Studio
263 | .ntvs_analysis.dat
264 | node_modules/
265 |
266 | # Visual Studio 6 build log
267 | *.plg
268 |
269 | # Visual Studio 6 workspace options file
270 | *.opt
271 |
272 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
273 | *.vbw
274 |
275 | # Visual Studio LightSwitch build output
276 | **/*.HTMLClient/GeneratedArtifacts
277 | **/*.DesktopClient/GeneratedArtifacts
278 | **/*.DesktopClient/ModelManifest.xml
279 | **/*.Server/GeneratedArtifacts
280 | **/*.Server/ModelManifest.xml
281 | _Pvt_Extensions
282 |
283 | # Paket dependency manager
284 | .paket/paket.exe
285 | paket-files/
286 |
287 | # FAKE - F# Make
288 | .fake/
289 |
290 | # JetBrains Rider
291 | .idea/
292 | *.sln.iml
293 |
294 | # CodeRush
295 | .cr/
296 |
297 | # Python Tools for Visual Studio (PTVS)
298 | __pycache__/
299 | *.pyc
300 |
301 | # Cake - Uncomment if you are using it
302 | # tools/**
303 | # !tools/packages.config
304 |
305 | # Tabs Studio
306 | *.tss
307 |
308 | # Telerik's JustMock configuration file
309 | *.jmconfig
310 |
311 | # BizTalk build output
312 | *.btp.cs
313 | *.btm.cs
314 | *.odx.cs
315 | *.xsd.cs
316 |
317 | # OpenCover UI analysis results
318 | OpenCover/
319 |
320 | # Azure Stream Analytics local run output
321 | ASALocalRun/
322 |
323 | # MSBuild Binary and Structured Log
324 | *.binlog
325 |
326 | # NVidia Nsight GPU debugger configuration file
327 | *.nvuser
328 |
329 | # MFractors (Xamarin productivity tool) working folder
330 | .mfractor/
331 | /Spotify.NetStandard/Spotify.NetStandard.Test/appsettings.json
332 |
--------------------------------------------------------------------------------
/Assets/spotify.netstandard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RoguePlanetoid/Spotify-NetStandard/78b5eeea1aba7904459ca4b72e7504d1acf1c3d0/Assets/spotify.netstandard.png
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Spotify.NetStandard
2 |
3 | ## Change Log
4 |
5 | #### Version 2.1.0
6 |
7 | - Restored Authorisation Code Flow
8 |
9 | ### Version 2.0.0
10 |
11 | - Refactored Code, Added User Episodes, Audiobook, Chapter and Queue, Updated Authorisation Code Flow with Code Verifier using Proof Key for Code Exchange (PKCE), Removed Authorisation Code Flow without Code Verifier and Original Proof Key for Code Exchange (PKCE) Flow
12 |
13 | ### Version 1.9.0
14 |
15 | - Added External HttpClient Support and Uno Platform Compatibility
16 |
17 | ### Version 1.8.0
18 |
19 | - Updated Authentication Flow with PKCE for Refresh Token
20 |
21 | ### Version 1.7.7
22 |
23 | - Fixed issue with Authentication Cache Response Uri
24 |
25 | ### Version 1.7.6
26 |
27 | - Fixed issue with Resume Point not returning Resume Position Correctly
28 |
29 | ### Version 1.7.5
30 |
31 | - Added Authorization Code Flow with Proof Key for Code Exchange (PKCE) for API
32 |
33 | ### Version 1.7.0
34 |
35 | - Added Authorization Code Flow with Proof Key for Code Exchange (PKCE), Updated Track Restrictions and Newtonsoft.Json
36 |
37 | ### Version 1.6.6
38 |
39 | - Fixed Track or Episode identification issue with Playlist Track and Currently Playing Objects
40 |
41 | ### Version 1.6.5
42 |
43 | - Updated Get a Playlist and Get a Playlist's Items to support Additional Types
44 |
45 | ### Version 1.6.0
46 |
47 | - Updated Remove Tracks from Playlist to support Positions and Added Paging Method
48 |
49 | ### Version 1.5.5
50 |
51 | - Fixed issue with Market and Country being used correctly
52 |
53 | ### Version 1.5.0
54 |
55 | - Added Save Shows for Current User, Get User's Saved Shows, Remove User's Saved Shows, Get an Episode, Get Multiple Episodes, Get a Show, Get Multiple Shows and Get a Show's Episodes plus PlaybackPositionRead Scope. Updated Get the User's Currently Playing Track, Get Information About The User's Current Playback and Search for an Item
56 |
57 | ### Version 1.2.0
58 |
59 | - Added Add an Item to the User's Playback Queue, Updated Get a Playlist and Get Playlist's Tracks to support Fields Parameter and Fixed Check/Lookup Methods Return Error Status Correctly
60 |
61 | ### Version 1.1.5
62 |
63 | - Added Actions Object, Disallows Object, Simplified Playlist Object and updated related methods
64 |
65 | ### Version 1.1.4
66 |
67 | - Fixed Token Storage and Get Playlist Tracks
68 |
69 | ### Version 1.1.3
70 |
71 | - Removed User Birthdate Value and Scope
72 |
73 | ### Version 1.1.2
74 |
75 | - Fixed and Improved Authentication Exceptions including minor Client Changes
76 |
77 | ### Version 1.1.1
78 |
79 | - Fixed Cursor and Paging Navigation
80 |
81 | ### Version 1.1.0
82 |
83 | - Added Authenticated Get Methods
84 | - Fixed Issue with Cursor Responses
85 |
86 | ### Version 1.0.2
87 |
88 | - Fixed Extension Methods
89 |
90 | ### Version 1.0.1
91 |
92 | - Added Multi Scope Helpers by [parkeradam](https://github.com/parkeradam)
93 |
94 | ### Version 1.0.0
95 |
96 | - Initial Release
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Peter Bull
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/NUGET.md:
--------------------------------------------------------------------------------
1 | # Spotify.NetStandard
2 |
3 | Spotify API .NET Standard Library
4 |
5 | ## Documentation and Source Code
6 |
7 | Project Documentation and Source Code can be found at [https://github.com/RoguePlanetoid/Spotify-NetStandard](https://github.com/RoguePlanetoid/Spotify-NetStandard)
8 |
9 | ## NuGet
10 |
11 | To add to your project from [nuget.org](https://www.nuget.org/packages/Spotify.NetStandard/) use:
12 | ```
13 | Install-Package Spotify.NetStandard
14 | ```
15 |
16 | ## Example
17 |
18 | ```c#
19 | using Spotify.NetStandard.Client;
20 | using Spotify.NetStandard.Requests;
21 |
22 | var client = SpotifyClientFactory
23 | .CreateSpotifyClient(
24 | "client-id","client-secret");
25 | var page = new Page() { Limit = 10 };
26 | var browse = await client.LookupNewReleasesAsync(page: page);
27 | foreach (var album in browse.Albums.Items)
28 | {
29 | ...
30 | }
31 | ```
32 |
33 | ## Client Id and Client Secret
34 |
35 | You can get a "client-id" and "client-secret" from [developer.spotify.com/dashboard](https://developer.spotify.com/dashboard/) by signing in with your Spotify Id then creating an Application.
36 |
37 | ## Change Log
38 |
39 | ### Version 2.1.0
40 |
41 | - Restored Authorisation Code Flow
42 |
43 | ### Version 2.0.0
44 |
45 | - Refactored Code, Added User Episodes, Audiobook, Chapter and Queue, Updated Authorisation Code Flow with Code Verifier using Proof Key for Code Exchange (PKCE), Removed Authorisation Code Flow without Code Verifier and Original Proof Key for Code Exchange (PKCE) Flow
46 |
47 | ### Version 1.9.0
48 |
49 | - Added External HttpClient Support and Uno Platform Compatibility
50 |
51 | ### Version 1.8.0
52 |
53 | - Updated Authentication Flow with PKCE for Refresh Token
54 |
55 | ### Version 1.7.7
56 |
57 | - Fixed issue with Authentication Cache Response Uri
58 |
59 | ### Version 1.7.6
60 |
61 | - Fixed issue with Resume Point not returning Resume Position Correctly
62 |
63 | ### Version 1.7.5
64 |
65 | - Added Authorization Code Flow with Proof Key for Code Exchange (PKCE) for API
66 |
67 | ### Version 1.7.0
68 |
69 | - Added Authorization Code Flow with Proof Key for Code Exchange (PKCE), Updated Track Restrictions and Newtonsoft.Json
70 |
71 | ### Version 1.6.6
72 |
73 | - Fixed Track or Episode identification issue with Playlist Track and Currently Playing Objects
74 |
75 | ### Version 1.6.5
76 |
77 | - Updated Get a Playlist and Get a Playlist's Items to support Additional Types
78 |
79 | ### Version 1.6.0
80 |
81 | - Updated Remove Tracks from Playlist to support Positions and Added Paging Method
82 |
83 | ### Version 1.5.5
84 |
85 | - Fixed issue with Market and Country being used correctly
86 |
87 | ### Version 1.5.0
88 |
89 | - Added Save Shows for Current User, Get User's Saved Shows, Remove User's Saved Shows, Get an Episode, Get Multiple Episodes, Get a Show, Get Multiple Shows and Get a Show's Episodes plus PlaybackPositionRead Scope. Updated Get the User's Currently Playing Track, Get Information About The User's Current Playback and Search for an Item
90 |
91 | ### Version 1.2.0
92 |
93 | - Added Add an Item to the User's Playback Queue, Updated Get a Playlist and Get Playlist's Tracks to support Fields Parameter and Fixed Check/Lookup Methods Return Error Status Correctly
94 |
95 | ### Version 1.1.5
96 |
97 | - Added Actions Object, Disallows Object, Simplified Playlist Object and updated related methods
98 |
99 | ### Version 1.1.4
100 |
101 | - Fixed Token Storage and Get Playlist Tracks
102 |
103 | ### Version 1.1.3
104 |
105 | - Removed User Birthdate Value and Scope
106 |
107 | ### Version 1.1.2
108 |
109 | - Fixed and Improved Authentication Exceptions including minor Client Changes
110 |
111 | ### Version 1.1.1
112 |
113 | - Fixed Cursor and Paging Navigation
114 |
115 | ### Version 1.1.0
116 |
117 | - Added Authenticated Get Methods
118 | - Fixed Issue with Cursor Responses
119 |
120 | ### Version 1.0.2
121 |
122 | - Fixed Extension Methods
123 |
124 | ### Version 1.0.1
125 |
126 | - Added Multi Scope Helpers by [parkeradam](https://github.com/parkeradam)
127 |
128 | ### Version 1.0.0
129 |
130 | - Initial Release
131 |
--------------------------------------------------------------------------------
/Spotify.NetStandard/Spotify.NetStandard.Test/Spotify.NetStandard.Test.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net6.0
5 | enable
6 | false
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | Always
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/Spotify.NetStandard/Spotify.NetStandard.Test/SpotifyClientTest.cs:
--------------------------------------------------------------------------------
1 | namespace Spotify.NetStandard.Test;
2 |
3 | ///
4 | /// Spotify Client Test
5 | ///
6 | [TestClass]
7 | public class SpotifyClientTest
8 | {
9 | private ISpotifyClient _client = null;
10 | private ContentResponse _content = null;
11 | private LookupResponse _list = null;
12 |
13 | ///
14 | /// Initialise Unit Test and Configuration
15 | ///
16 | [TestInitialize]
17 | public void Init()
18 | {
19 | // Configuration
20 | var configBuilder = new ConfigurationBuilder()
21 | .SetBasePath(Directory.GetCurrentDirectory())
22 | .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true);
23 | IConfiguration config = configBuilder.Build();
24 | // Spotify Client Factory
25 | _client = SpotifyClientFactory.CreateSpotifyClient(
26 | config["client_id"], config["client_secret"]);
27 | Assert.IsNotNull(_client);
28 | }
29 |
30 | #region Albums
31 | ///
32 | /// Get an Album
33 | ///
34 | ///
35 | [TestMethod]
36 | public async Task Test_Lookup_Album()
37 | {
38 | Album item = await _client.LookupAsync(
39 | "1ZGxGu4fMROqmZsFSoepeE", LookupType.Albums);
40 | Assert.IsNotNull(item);
41 | }
42 |
43 | ///
44 | /// Get an Album's Tracks
45 | ///
46 | ///
47 | [TestMethod]
48 | public async Task Test_Lookup_AlbumTracks()
49 | {
50 | Paging