How eldinocodes/ec.spotify works
EC.Spotify is a strongly typed .NET client for the Spotify Web API. A consumer injects ISpotifyClient, chooses a domain service, and receives typed results or raw JSON; the library also covers OAuth authorization, playback, library and playlist management, catalog lookup, and user data. The graph groups services by capability and shows the shared client and transport layer. The README and sampled search, user, and authorization sources support only some internal links; other service-to-transport links are omitted rather than inferred.
Main entry points: SpotifyClient.cs Spotify client · SpotifyHttpProvider.cs HTTP provider · SearchService.cs Search · UserService.cs User
Components 19
Client entry
- Spotify client
src/EC.Spotify/EC.Spotify/SpotifyClient.cs
Catalog services
- Albums
src/EC.Spotify/EC.Spotify/Services/AlbumService.cs - Artists
src/EC.Spotify/EC.Spotify/Services/ArtistService.cs - Audiobooks
src/EC.Spotify/EC.Spotify/Services/AudiobookService.cs - Chapters
src/EC.Spotify/EC.Spotify/Services/ChapterService.cs - Episodes
src/EC.Spotify/EC.Spotify/Services/EpisodeService.cs - Shows
src/EC.Spotify/EC.Spotify/Services/ShowService.cs - Tracks
src/EC.Spotify/EC.Spotify/Services/TrackService.cs - Search
src/EC.Spotify/EC.Spotify/Services/SearchService.cs
Account and playback
Authorization
- Authorization
src/EC.Spotify/EC.Spotify/Services/AuthorizationService.cs - Token cache
src/EC.Spotify/EC.Spotify/Services/AuthorizationService.cs
Transport and results
- HTTP provider
src/EC.Spotify/EC.Spotify/Providers/SpotifyHttpProvider.cs - Typed results
src/EC.Spotify/EC.Spotify/Models/SpotifyResult.cs
Other components
- Library consumer
- Spotify Web API
Connections 21
- Library consumer → Spotify client: injects
README.md - Spotify client → Albums: exposes
README.md - Spotify client → Artists: exposes
README.md - Spotify client → Audiobooks: exposes
README.md - Spotify client → Authorization: exposes
README.md - Spotify client → Chapters: exposes
README.md - Spotify client → Episodes: exposes
README.md - Spotify client → Library: exposes
README.md - Spotify client → Player: exposes
README.md - Spotify client → Playlists: exposes
README.md - Spotify client → Search: exposes
README.md - Spotify client → Shows: exposes
README.md - Spotify client → Tracks: exposes
README.md - Spotify client → User: exposes
README.md - Search → HTTP provider: requests via
src/EC.Spotify/EC.Spotify/Services/SearchService.cs - User → HTTP provider: requests via
src/EC.Spotify/EC.Spotify/Services/UserService.cs - Authorization → Token cache: caches tokens
src/EC.Spotify/EC.Spotify/Services/AuthorizationService.cs - Authorization → HTTP provider: requests token
src/EC.Spotify/EC.Spotify/Services/AuthorizationService.cs - HTTP provider → Spotify Web API: sends requests
- Search → Typed results: returns typed
src/EC.Spotify/EC.Spotify/Services/SearchService.cs - User → Typed results: returns typed
src/EC.Spotify/EC.Spotify/Services/UserService.cs