### ReleasesList.Items Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleasesList.md Gets or sets the list of releases. ```APIDOC ## Items ### Description Gets or sets the list of releases. ### Method Property (get/set) ### Endpoint N/A ### Parameters None ### Request Example None ### Response - **List**: The list of releases. ``` -------------------------------- ### Article Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Article/Article.md Initializes a new instance of the Article class. No specific setup is required beyond instantiating the class. ```csharp public Article() ``` -------------------------------- ### Default Constructor for ReleaseAudioInfo Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleaseAudioInfo/ReleaseAudioInfo.md Initializes a new instance of the ReleaseAudioInfo class with default values. No specific setup or imports are required beyond the class definition itself. ```csharp public ReleaseAudioInfo() ``` -------------------------------- ### Items Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/AlbumsSameArtist.md Gets or sets the collection of albums. ```APIDOC ## Items ### Description Gets or sets the collection of albums associated with the same artist. ### Method Property (get/set) ### Endpoint N/A ### Parameters None ### Request Example None ### Response - **Items** (List) - The list of albums. ### Response Example None ``` -------------------------------- ### Album Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Album/Album.md Initializes a new instance of the Album class with default values. No specific setup or imports are required beyond the class definition. ```csharp public Album() ``` -------------------------------- ### Album.Purchasable Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Album/Purchasable.md Gets or sets a value indicating whether the album is purchasable. ```APIDOC ## Album.Purchasable Property ### Description Indicates whether the album is available for purchase. ### Property Type `bool?` (Nullable boolean) ### Usage This property can be used to check if an album can be bought through the Qobuz API. ```csharp public bool? Purchasable { get; set; } ``` ``` -------------------------------- ### ReleasePhysicalSupport Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleasePhysicalSupport/ReleasePhysicalSupport.md Initializes a new instance of the ReleasePhysicalSupport class with default values. No specific setup or imports are required beyond the class definition. ```csharp public ReleasePhysicalSupport() ``` -------------------------------- ### Get Track File URL with QobuzApiService Source: https://context7.com/djdoubled/qobuzapisharp/llms.txt Obtains a time-limited, signed file URL for a track in a requested audio format. Requires a valid user authentication token. Format IDs include 5 (MP3 320), 6 (FLAC Lossless), 7 (FLAC Hi-Res ≤96 kHz), and 27 (FLAC Hi-Res ≤192 kHz). ```csharp using QobuzApiSharp.Service; using QobuzApiSharp.Models.Content; using QobuzApiSharp.Exceptions; using QobuzApiService apiService = new QobuzApiService("APP_ID", "APP_SECRET"); apiService.LoginWithEmail("user@example.com", ToMd5("mypassword")); try { FileUrl fileUrl = apiService.GetTrackFileUrl(trackId: "64868187", formatId: "27"); // Hi-Res 192kHz Console.WriteLine($"Stream URL : {fileUrl.Url}"); Console.WriteLine($"Format ID : {fileUrl.FormatId}"); Console.WriteLine($"Mime type : {fileUrl.MimeType}"); Console.WriteLine($"Sampling : {fileUrl.SamplingRate} kHz / {fileUrl.BitDepth} bit"); } catch (ApiErrorResponseException ex) { Console.WriteLine($"Could not get file URL [{ex.ResponseStatusCode}]: {ex.ResponseReason}"); } ``` -------------------------------- ### Playlist Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Playlist/Playlist.md Initializes a new instance of the Playlist class with default values. No specific setup or imports are required beyond the class definition. ```csharp public Playlist() ``` -------------------------------- ### Goody Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Goody/Goody.md Initializes a new instance of the Goody class with default values. No specific setup or parameters are required. ```csharp public Goody() ``` -------------------------------- ### Default ReleaseRights Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleaseRights/ReleaseRights.md Initializes a new instance of the ReleaseRights class with default values. No specific setup or imports are required beyond the class definition. ```csharp public ReleaseRights() ``` -------------------------------- ### Story Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Story/Story.md Initializes a new instance of the Story class with default values. No specific setup is required beyond instantiating the class. ```csharp public Story() ``` -------------------------------- ### Genre Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Genre/Genre.md Initializes a new instance of the Genre class with default values. No specific setup or imports are required beyond the class definition. ```csharp public Genre() ``` -------------------------------- ### Image Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Image/Image.md Initializes a new instance of the Image class with default values. No specific setup is required to use this constructor. ```csharp public Image() ``` -------------------------------- ### Default Constructor for MostPopularContentConverter Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Converters/MostPopularContentConverter/MostPopularContentConverter.md Initializes a new instance of the MostPopularContentConverter class. No specific setup or parameters are required for this default constructor. ```csharp public MostPopularContentConverter() ``` -------------------------------- ### Analytics Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Analytics/Analytics.md Initializes a new instance of the Analytics class using the default constructor. No specific setup or parameters are required. ```csharp public Analytics() ``` -------------------------------- ### Default Biography Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Biography/Biography.md Initializes a new instance of the Biography class with default values. No specific setup or imports are required beyond the class definition. ```csharp public Biography() ``` -------------------------------- ### Instantiate QobuzApiService with Credentials Source: https://github.com/djdoubled/qobuzapisharp/blob/master/README.md Use this method when you have your application ID and user authentication token available. Ensure these credentials are valid before instantiation. ```csharp QobuzApiService apiService = new QobuzApiService(appId, userAuthToken); ``` -------------------------------- ### ReleaseTrackList.Items Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleaseTrackList.md Gets or sets the list of tracks. ```APIDOC ## Items ### Description Gets or sets the collection of tracks within the ReleaseTrackList. ### Property Type List ``` -------------------------------- ### AudioInfo Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/AudioInfo.md Initializes a new instance of the AudioInfo class. ```APIDOC ## AudioInfo() ### Description The default constructor for the AudioInfo class. ### Method Constructor ### Parameters None ### Response Initializes a new AudioInfo object. ``` -------------------------------- ### Instantiate QobuzApiService to Fetch Credentials Source: https://github.com/djdoubled/qobuzapisharp/blob/master/README.md Instantiate the service without arguments to attempt fetching application credentials from the Qobuz Web Player. Note that this method may break if the Qobuz Web Player's structure changes. ```csharp QobuzApiService apiService = new QobuzApiService(); ``` -------------------------------- ### ReleaseArtist.Name Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleaseArtist.md Gets or sets the name of the artist. ```APIDOC ## Name { get; set; } ### Description Gets or sets the name of the artist. ### Method Property ### Endpoint N/A ### Parameters None ### Request Example None ### Response - **Name** (string) - The name of the artist. ### Response Example None ``` -------------------------------- ### Instantiate QobuzApiService with Auto-Fetched Web Player Credentials Source: https://context7.com/djdoubled/qobuzapisharp/llms.txt When no credentials are provided, the service scrapes the production app_id and app_secret directly from the Qobuz Web Player's bundle.js. Throws QobuzApiInitializationException if extraction fails. ```csharp using QobuzApiSharp.Service; using QobuzApiSharp.Exceptions; try { using QobuzApiService apiService = new QobuzApiService(); Console.WriteLine($"Auto-fetched App ID: {apiService.AppId}"); } catch (QobuzApiInitializationException ex) { Console.WriteLine($"Initialization failed: {ex.Message}"); } ``` -------------------------------- ### ReleaseArtistName.Display Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleaseArtistName.md Gets or sets the display name of the artist. ```APIDOC ## ReleaseArtistName.Display ### Description Gets or sets the display name of the artist associated with the release. ### Method Property (get/set) ### Endpoint N/A ### Parameters None ### Request Example ```csharp var artistName = new ReleaseArtistName(); artistName.Display = "Example Artist"; string displayName = artistName.Display; ``` ### Response - **Display** (string) - The display name of the artist. ``` -------------------------------- ### Instantiate QobuzApiService with Explicit Credentials Source: https://context7.com/djdoubled/qobuzapisharp/llms.txt Create the service by passing your Qobuz app_id and app_secret. All subsequent API calls share the same HttpClient instance. Call Dispose() or wrap in a using block to release resources. ```csharp using QobuzApiSharp.Service; using QobuzApiSharp.Exceptions; // Option 1 – provide your own app credentials using QobuzApiService apiService = new QobuzApiService("YOUR_APP_ID", "YOUR_APP_SECRET"); Console.WriteLine($"App ID : {apiService.AppId}"); Console.WriteLine("Initialized successfully"); ``` -------------------------------- ### QobuzApiService() Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Service/QobuzApiService/QobuzApiService.md Initializes a new instance of the QobuzApiService class using dynamic retrieval of the app_id and app_secret from the Qobuz Web Player. ```APIDOC ## QobuzApiService() ### Description Initializes a new instance of the `QobuzApiService` class using dynamic retrieval of the app_id and app_secret from the Qobuz Web Player. ### Method Constructor ### Endpoint N/A ### Parameters None ### Request Example ```csharp var service = new QobuzApiService(); ``` ### Response N/A ``` -------------------------------- ### ArticleIds.SMR Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ArticleIds.md Gets or sets the SMR article identifier. ```APIDOC ## SMR ### Description Gets or sets the SMR article identifier. ### Property Type string ### Access Read/Write ``` -------------------------------- ### ArticleIds.SHP Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ArticleIds.md Gets or sets the SHP article identifier. ```APIDOC ## SHP ### Description Gets or sets the SHP article identifier. ### Property Type string ### Access Read/Write ``` -------------------------------- ### Instantiate QobuzApiService with auto-fetched Web Player credentials Source: https://context7.com/djdoubled/qobuzapisharp/llms.txt Instantiate QobuzApiService without providing credentials. The service will attempt to automatically fetch the app ID and app secret from the Qobuz Web Player. An exception is thrown if this process fails. ```APIDOC ## Instantiate `QobuzApiService` with auto-fetched Web Player credentials When no credentials are provided, the service scrapes the production `app_id` and `app_secret` directly from the Qobuz Web Player's `bundle.js`. Throws `QobuzApiInitializationException` if extraction fails. ```csharp using QobuzApiSharp.Service; using QobuzApiSharp.Exceptions; try { using QobuzApiService apiService = new QobuzApiService(); Console.WriteLine($"Auto-fetched App ID: {apiService.AppId}"); } catch (QobuzApiInitializationException ex) { Console.WriteLine($"Initialization failed: {ex.Message}"); } ``` ``` -------------------------------- ### ArticleIds.LLS Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ArticleIds.md Gets or sets the LLS article identifier. ```APIDOC ## LLS ### Description Gets or sets the LLS article identifier. ### Property Type string ### Access Read/Write ``` -------------------------------- ### QobuzApiService() Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Service/QobuzApiService/QobuzApiService.md Initializes the QobuzApiService using dynamic retrieval of app_id and app_secret from the Qobuz Web Player. Use this constructor when you want the service to automatically find authentication credentials. ```csharp public QobuzApiService() ``` -------------------------------- ### ApiErrorResponseException.RequestContent Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Exceptions/ApiErrorResponseException/RequestContent.md Gets the content of the request that caused the API error. ```APIDOC ## ApiErrorResponseException.RequestContent Property ### Description Gets the content of the request that caused the API error. ### Property Type `string` ### Access Public, Read-only ``` -------------------------------- ### Get Artist Profile with Albums Source: https://context7.com/djdoubled/qobuzapisharp/llms.txt Retrieves an artist's profile including their name and optionally embedded albums. Use 'albums' for extra data and sort by release date descending. ```csharp using QobuzApiSharp.Service; using QobuzApiSharp.Models.Content; using QobuzApiService apiService = new QobuzApiService("APP_ID", "APP_SECRET"); // extra: "albums" sorted by release date descending, top 20 Artist artist = apiService.GetArtist("26160", extra: "albums", sort: "release_desc", limit: 20); Console.WriteLine($"Name : {artist.Name}"); Console.WriteLine($"Albums : {artist.Albums?.Total}"); foreach (var album in artist.Albums?.Items?.Take(5) ?? Enumerable.Empty()) { Console.WriteLine($" {album.Title} ({album.ReleaseDateOriginal})"); } ``` -------------------------------- ### Handle QobuzApiSharp Exceptions in C# Source: https://context7.com/djdoubled/qobuzapisharp/llms.txt Demonstrates how to catch and handle specific QobuzApiSharp exceptions. Ensure the QobuzApiService is instantiated with valid credentials. ```csharp using QobuzApiSharp.Service; using QobuzApiSharp.Exceptions; using QobuzApiService apiService = new QobuzApiService("APP_ID", "APP_SECRET"); try { var album = apiService.GetAlbum("invalid_id_999"); } catch (ApiErrorResponseException ex) { Console.WriteLine($"HTTP Code : {ex.ResponseStatusCode}"); Console.WriteLine($"Status : {ex.ResponseStatus}"); Console.WriteLine($"Reason : {ex.ResponseReason}"); Console.WriteLine($"Request : {ex.RequestContent}"); } catch (ApiResponseParseErrorException ex) { Console.WriteLine($"Parse error: {ex.Message}"); Console.WriteLine($"Raw response body: {ex.ResponseContent}"); } catch (QobuzApiInitializationException ex) { Console.WriteLine($"Service init failed: {ex.Message}"); } ``` -------------------------------- ### ReleasePhysicalSupport.TrackNumber Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleasePhysicalSupport.md Gets or sets the track number for the release physical support. ```APIDOC ## ReleasePhysicalSupport.TrackNumber ### Description Gets or sets the track number. ### Method Property Accessor ### Endpoint N/A ### Parameters None ### Request Example None ### Response - **TrackNumber** (int) - The track number. ``` -------------------------------- ### ReleasePhysicalSupport.MediaNumber Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleasePhysicalSupport.md Gets or sets the media number for the release physical support. ```APIDOC ## ReleasePhysicalSupport.MediaNumber ### Description Gets or sets the media number. ### Method Property Accessor ### Endpoint N/A ### Parameters None ### Request Example None ### Response - **MediaNumber** (int) - The media number. ``` -------------------------------- ### QobuzApiStatusResponse() Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models/QobuzApiStatusResponse/QobuzApiStatusResponse.md Initializes a new instance of the QobuzApiStatusResponse class with default values. ```APIDOC ## QobuzApiStatusResponse() ### Description The default constructor for the `QobuzApiStatusResponse` class. ### Method Constructor ### Endpoint N/A (Class Constructor) ### Parameters None ### Request Example N/A (Constructor) ### Response Initializes a new `QobuzApiStatusResponse` object. #### Response Example N/A (Constructor) ``` -------------------------------- ### QobuzApiService Constructors Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Service/QobuzApiService.md Initializes a new instance of the QobuzApiService class. The first constructor dynamically retrieves app credentials from the Qobuz Web Player, while the second allows for custom app_id and app_secret. ```APIDOC ## QobuzApiService() ### Description Initializes a new instance of the `QobuzApiService` class using dynamic retrieval of the app_id and app_secret from the Qobuz Web Player. ### Method Constructor ### Endpoint N/A ## QobuzApiService(string appId, string appSecret) ### Description Initializes a new instance of the `QobuzApiService` class with custom app_id and app_secret. ### Method Constructor ### Endpoint N/A ``` -------------------------------- ### Track.MaximumSamplingRate Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Track/MaximumSamplingRate.md Gets or sets the maximum sampling rate for the track. This property is nullable. ```APIDOC ## Property Track.MaximumSamplingRate ### Description Gets or sets the maximum sampling rate for the track. This property is nullable. ### Syntax ```csharp public double? MaximumSamplingRate { get; set; } ``` ### Type System.Nullable ``` -------------------------------- ### QobuzApiService Initialization Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.md The QobuzApiService is the main entry point for interacting with the Qobuz REST API. It can be initialized either by providing your application's 'app_id' and 'app_secret' directly, or by allowing the service to automatically retrieve these credentials from the Qobuz Web Player. ```APIDOC ## QobuzApiService ### Description The service disclosing the various endpoints of the Qobuz REST API. The service can be initialized using your own 'app_id' and 'app_secret', or by letting the service attempt to fetch these 2 values from the Qobuz Web Player. ### Initialization **Option 1: Using App ID and App Secret** ```csharp var service = new QobuzApiService("YOUR_APP_ID", "YOUR_APP_SECRET"); ``` **Option 2: Automatic Credential Fetching** ```csharp var service = new QobuzApiService(); ``` ``` -------------------------------- ### FileUrl.Status Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/FileUrl/Status.md Represents the status of a file URL. This is a string property that can be get and set. ```APIDOC ## FileUrl.Status Property ### Description Represents the status of a file URL. This is a string property that can be get and set. ### C# Signature ```csharp public string Status { get; set; } ``` ``` -------------------------------- ### ReleasesList() Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleasesList/ReleasesList.md Initializes a new instance of the ReleasesList class with default values. ```APIDOC ## ReleasesList() ### Description The default constructor for the ReleasesList class. ### Method public ReleasesList() ### Parameters This constructor does not take any parameters. ### Response Creates an instance of the ReleasesList class. ``` -------------------------------- ### QobuzApiService(string appId, string appSecret) Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Service/QobuzApiService/QobuzApiService.md Initializes the QobuzApiService with custom app_id and app_secret values. Provide your specific application credentials when using this constructor. ```csharp public QobuzApiService(string appId, string appSecret) ``` -------------------------------- ### TrackIdsConverter.CanWrite Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Converters/TrackIdsConverter.md Gets a value indicating whether this converter can write JSON. ```APIDOC ## CanWrite ### Description Gets a value indicating whether this converter can write JSON. This property is overridden from the base JsonConverter class. ### Method GET ### Endpoint N/A ### Parameters None ### Request Example None ### Response - **bool** (bool) - True if the converter can write JSON, false otherwise. ### Response Example ```json { "CanWrite": true } ``` ### Error Handling None ``` -------------------------------- ### Album.HiresStreamable Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Album/HiresStreamable.md Gets or sets a value indicating whether the album is streamable in high-resolution audio. ```APIDOC ## Album.HiresStreamable Property ### Description Gets or sets a value indicating whether the album is streamable in high-resolution audio. ### Property Signature ```csharp public bool? HiresStreamable { get; set; } ``` ### Type System.Nullable ``` -------------------------------- ### GetUserFavoriteIds Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Service/QobuzApiService/GetUserFavoriteIds.md Gets the IDs of the user favorites for the authenticated user or user with the specified user ID. ```APIDOC ## GetUserFavoriteIds ### Description Gets the IDs of the user favorites for the authenticated user or user with the specified user ID. ### Method Signature ```csharp public UserFavoritesIds GetUserFavoriteIds(string userId, int limit = 5000, int offset = 0) ``` ### Parameters #### Path Parameters - **userId** (string) - Optional - The User ID to fetch the favorites from. If omitted, returns favorites of the logged in user using user_auth_token. #### Query Parameters - **limit** (int) - Optional - The maximum number of extra results to return. Defaults to 5000, minimum 1, maximum 999999. - **offset** (int) - Optional - The offset of the first extra result to return. Defaults to 0. ### Return Value - **UserFavoritesIds** - Containing the IDs of the user favorites. ### Exceptions - **ApiErrorResponseException** - Thrown if an error occurs while retrieving the UserFavoritesIds. - **ApiResponseParseErrorException** - Thrown when the API response could not be parsed. ``` -------------------------------- ### Constructor with Message and Request Content Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Exceptions/ApiResponseParseErrorException/ApiResponseParseErrorException.md Initialize the exception with an error message and the content of the request that caused the error. ```csharp public ApiResponseParseErrorException(string message, string requestContent) ``` -------------------------------- ### Playlist() Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Playlist/Playlist.md Initializes a new instance of the Playlist class with default values. ```APIDOC ## Playlist() ### Description Initializes a new instance of the Playlist class. ### Method Constructor ### Endpoint N/A ### Parameters None ### Request Example ```csharp var playlist = new Playlist(); ``` ### Response N/A ``` -------------------------------- ### Author.Name Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Author/Name.md The Name property is a string that holds the name of the author. It is accessible for both getting and setting. ```APIDOC ## Author.Name Property ### Description Represents the name of the author. ### Method Property Access ### Endpoint N/A (Class Property) ### Parameters N/A ### Request Example N/A ### Response #### Success Response (200) - **Name** (string) - The name of the author. ### Response Example N/A ``` -------------------------------- ### GetTrack Method Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Service/QobuzApiService/GetTrack.md Gets the track with the specified track ID. You can optionally specify whether to use user authentication. ```APIDOC ## GetTrack ### Description Gets the track with the specified track ID. You can optionally specify whether to use user authentication. ### Method Signature ```csharp public Track GetTrack(string trackId, bool withAuth = false) ``` ### Parameters #### Path Parameters - **trackId** (string) - Required - The ID of the track to get. - **withAuth** (bool) - Optional - Execute search with or without user_auth_token. Defaults to false. ### Return Value The track with the specified artist ID. ### Exceptions - **ApiErrorResponseException**: Thrown if an error occurs while retrieving the track. - **ApiResponseParseErrorException**: Thrown when the API response could not be parsed. ``` -------------------------------- ### QobuzApiInitializationException Constructor with Message Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Exceptions/QobuzApiInitializationException/QobuzApiInitializationException.md Initializes a new instance of the QobuzApiInitializationException class with a specified error message. Use this to provide a descriptive error message. ```csharp public QobuzApiInitializationException(string message) ``` -------------------------------- ### QobuzApiService(string appId, string appSecret) Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Service/QobuzApiService/QobuzApiService.md Initializes a new instance of the QobuzApiService class with custom app_id and app_secret. ```APIDOC ## QobuzApiService(string appId, string appSecret) ### Description Initializes a new instance of the `QobuzApiService` class with custom app_id and app_secret. ### Method Constructor ### Endpoint N/A ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Parameters - **appId** (string) - Required - The app id. - **appSecret** (string) - Required - The app secret. ### Request Example ```csharp var service = new QobuzApiService("your_app_id", "your_app_secret"); ``` ### Response N/A ``` -------------------------------- ### Focus.Title Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Focus/Title.md The Title property is a string that represents the title of a focus item. It is accessible for both getting and setting its value. ```APIDOC ## Focus.Title Property ### Description Represents the title of a focus item. ### Property Type `string` ### Access Modifiers `public get; set;` ``` -------------------------------- ### Album.Subtitle Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Album/Subtitle.md The Subtitle property of the Album class allows you to get or set the subtitle of an album. This is a string property. ```APIDOC ## Album.Subtitle Property ### Description Represents the subtitle of an album. This property is of type string and can be read or written. ### Property Type `string` ### Usage Example ```csharp // Assuming 'album' is an instance of the Album class string subtitle = album.Subtitle; album.Subtitle = "New Subtitle"; ``` ``` -------------------------------- ### ReleaseAudioInfo() Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleaseAudioInfo/ReleaseAudioInfo.md The default constructor for the ReleaseAudioInfo class. ```APIDOC ## ReleaseAudioInfo() ### Description The default constructor. ### Method Constructor ### Endpoint N/A ### Parameters None ### Request Example None ### Response None ``` -------------------------------- ### Constructor with Message Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Exceptions/ApiResponseParseErrorException/ApiResponseParseErrorException.md Initialize the exception with a custom error message. ```csharp public ApiResponseParseErrorException(string message) ``` -------------------------------- ### UserAuthToken Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Service/QobuzApiService/UserAuthToken.md Gets or sets the user auth token. This property is essential for authenticating with the Qobuz API on behalf of a user. ```csharp public string UserAuthToken { get; set; } ``` -------------------------------- ### AppId Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Service/QobuzApiService/AppId.md Gets the app id. This property is part of the QobuzApiService and is used to identify the application when interacting with the Qobuz API. ```APIDOC ## AppId Property ### Description Gets the app id. ### Property Signature ```csharp public string AppId { get; } ``` ### Usage This property is read-only and is typically set during the initialization of the `QobuzApiService`. ### Example ```csharp // Assuming qobuzApiService is an instance of QobuzApiService string appId = qobuzApiService.AppId; Console.WriteLine($"App ID: {appId}"); ``` ``` -------------------------------- ### Retrieve Album Details with QobuzApiService Source: https://context7.com/djdoubled/qobuzapisharp/llms.txt Fetches a complete Album object including track listing, artist, and audio information. Optional parameters can control pagination and embedded fields. ```csharp using QobuzApiSharp.Service; using QobuzApiSharp.Models.Content; using QobuzApiSharp.Exceptions; using QobuzApiService apiService = new QobuzApiService("APP_ID", "APP_SECRET"); try { // extra = "track_ids,albumsFromSameArtist" Album album = apiService.GetAlbum("0060253780946", extra: "track_ids", limit: 50, offset: 0); Console.WriteLine($"Title : {album.Title}"); Console.WriteLine($"Artist : {album.Artist?.Name}"); Console.WriteLine($"Tracks : {album.TracksCount}"); Console.WriteLine($"Format : {album.AudioInfo?.MaximumBitDepth} bit / {album.AudioInfo?.MaximumSamplingRate} kHz"); } catch (ApiErrorResponseException ex) { Console.WriteLine($"Error {ex.ResponseStatusCode}: {ex.ResponseReason}"); } ``` -------------------------------- ### AppSecret Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Service/QobuzApiService/AppSecret.md Gets the app secret. This property is part of the QobuzApiService and is used to access the application's secret key. ```APIDOC ## AppSecret Property ### Description Gets the app secret. ### C# Signature ```csharp public string AppSecret { get; } ``` ``` -------------------------------- ### LoginWithUsername — Authenticate with Username and MD5 Password Source: https://context7.com/djdoubled/qobuzapisharp/llms.txt Identical to LoginWithEmail but uses a Qobuz username instead of an e-mail address. The password must be supplied as a lowercase MD5 hex string. ```csharp using QobuzApiSharp.Service; using QobuzApiSharp.Models.User; using QobuzApiSharp.Exceptions; using QobuzApiService apiService = new QobuzApiService("APP_ID", "APP_SECRET"); try { Login login = apiService.LoginWithUsername("johndoe", ToMd5("mypassword")); Console.WriteLine($"User ID : {login.User.Id}"); Console.WriteLine($"Auth token : {login.AuthToken}"); } catch (ApiErrorResponseException ex) { Console.WriteLine($"Login failed: {ex.ResponseReason}"); } ``` -------------------------------- ### FileUrl.SamplingRate Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/FileUrl/SamplingRate.md Gets or sets the sampling rate of the audio file associated with the URL. This is typically represented as a double-precision floating-point number. ```APIDOC ## FileUrl.SamplingRate Property ### Description Gets or sets the sampling rate of the audio file associated with the URL. ### Property Type double ### Example ```csharp // Assuming fileUrl is an instance of FileUrl double rate = fileUrl.SamplingRate; fileUrl.SamplingRate = 44100.0; ``` ``` -------------------------------- ### Article.Thumbnail Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Article/Thumbnail.md The Thumbnail property of the Article class allows you to get or set the URI of the article's thumbnail image. ```APIDOC ## Article.Thumbnail Property ### Description Represents the thumbnail image of the article. ### Property Type System.Uri ``` -------------------------------- ### Story() Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Story/Story.md Initializes a new instance of the Story class with default values. ```APIDOC ## Story() ### Description Initializes a new instance of the Story class. ### Method Constructor ### Endpoint N/A ### Parameters None ### Request Example ```csharp var story = new Story(); ``` ### Response N/A ``` -------------------------------- ### Album() Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Album/Album.md The default constructor for the Album class. It initializes a new instance of the Album object with default values. ```APIDOC ## Album() ### Description The default constructor. ### Method Constructor ### Endpoint N/A ### Parameters None ### Request Example ```csharp var album = new Album(); ``` ### Response N/A ``` -------------------------------- ### Default Constructor for MostPopular Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/MostPopular/MostPopular.md Initializes a new instance of the MostPopular class. No specific setup or parameters are required for this default constructor. ```csharp public MostPopular() ``` -------------------------------- ### Default AudioInfo Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/AudioInfo/AudioInfo.md Initializes a new instance of the AudioInfo class with default values. This constructor does not require any arguments. ```csharp public AudioInfo() ``` -------------------------------- ### QobuzApiInitializationException Constructor with Message and Inner Exception Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Exceptions/QobuzApiInitializationException/QobuzApiInitializationException.md Initializes a new instance of the QobuzApiInitializationException class with a specified error message and a reference to the inner exception that is the cause of this exception. Use this for exception chaining. ```csharp public QobuzApiInitializationException(string message, Exception innerException) ``` -------------------------------- ### Instantiate QobuzApiService with explicit credentials Source: https://context7.com/djdoubled/qobuzapisharp/llms.txt Create an instance of QobuzApiService by providing your Qobuz app ID and app secret. This service instance will manage all API interactions and can be disposed of when no longer needed. ```APIDOC ## Instantiate `QobuzApiService` with explicit credentials Create the service by passing your Qobuz `app_id` and `app_secret`. All subsequent API calls share the same `HttpClient` instance. Call `Dispose()` or wrap in a `using` block to release resources. ```csharp using QobuzApiSharp.Service; using QobuzApiSharp.Exceptions; // Option 1 – provide your own app credentials using QobuzApiService apiService = new QobuzApiService("YOUR_APP_ID", "YOUR_APP_SECRET"); Console.WriteLine($"App ID : {apiService.AppId}"); Console.WriteLine($"Initialized successfully"); ``` ``` -------------------------------- ### ReleaseTrack.Composer Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleaseTrack/Composer.md The Composer property of the ReleaseTrack class allows you to get or set the composer associated with a release track. It is of type 'object'. ```APIDOC ## ReleaseTrack.Composer Property ### Description Represents the composer of the release track. ### Property Type `object` ### Usage ```csharp public object Composer { get; set; } ``` ``` -------------------------------- ### Constructor with Message, Request Content, and Inner Exception Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Exceptions/ApiResponseParseErrorException/ApiResponseParseErrorException.md The most comprehensive constructor, allowing initialization with a message, the request content, and an inner exception. ```csharp public ApiResponseParseErrorException(string message, string requestContent, Exception innerException) ``` -------------------------------- ### Focus.Accroche Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Focus/Accroche.md Represents a string property named Accroche within the Focus class. This property is accessible for both getting and setting its value. ```APIDOC ## Focus.Accroche Property ### Description Represents a string property named Accroche within the Focus class. This property is accessible for both getting and setting its value. ### Property Signature ```csharp public string Accroche { get; set; } ``` ### Type string ### Access Modifiers Public ``` -------------------------------- ### QobuzApiInitializationException(string message) Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Exceptions/QobuzApiInitializationException/QobuzApiInitializationException.md Initializes a new instance of the QobuzApiInitializationException class with a specified error message. This constructor allows you to provide a custom message that explains the reason for the exception. ```APIDOC ## QobuzApiInitializationException(string message) ### Description Initializes a new instance of the QobuzApiInitializationException class with a specified error message. ### Method Constructor ### Parameters * **message** (string) - Required - The message that describes the error. ### Code Example ```csharp public QobuzApiInitializationException(string message) ``` ``` -------------------------------- ### Article.Type Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Article/Type.md The 'Type' property of the Article class is a string that indicates the category or type of the article. It is accessible for both getting and setting its value. ```APIDOC ## Article.Type Property ### Description Represents the type of the article. ### Property Signature ```csharp public string Type { get; set; } ``` ### Type String ``` -------------------------------- ### QobuzApiInitializationException Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Exceptions/QobuzApiInitializationException/QobuzApiInitializationException.md Initializes a new instance of the QobuzApiInitializationException class with default values. Use this when no specific message or inner exception is required. ```csharp public QobuzApiInitializationException() ``` -------------------------------- ### Article() Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Article/Article.md Initializes a new instance of the Article class with default values. ```APIDOC ## Article() ### Description Initializes a new instance of the Article class. ### Method Constructor ### Endpoint N/A ### Parameters None ### Request Example ```csharp var article = new Article(); ``` ### Response N/A ``` -------------------------------- ### Album.Catchline Property Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Album/Catchline.md The Catchline property of the Album class is a string that holds a descriptive tagline for the album. It is accessible for both getting and setting its value. ```APIDOC ## Album.Catchline Property ### Description Represents a short, catchy phrase or tagline associated with an album. ### Property Type `string` ### Access Modifiers `public get; set;` ### Example ```csharp string albumCatchline = album.Catchline; album.Catchline = "The ultimate collection"; ``` ``` -------------------------------- ### ReleaseAudioInfo Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleaseAudioInfo.md The default constructor for the ReleaseAudioInfo class. ```APIDOC ## ReleaseAudioInfo() ### Description Initializes a new instance of the `ReleaseAudioInfo` class. ### Method Constructor ### Endpoint N/A ### Parameters None ### Request Example None ### Response None ``` -------------------------------- ### Default ReleaseArtistName Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleaseArtistName/ReleaseArtistName.md Initializes a new instance of the ReleaseArtistName class with default values. No specific setup is required to use this constructor. ```csharp public ReleaseArtistName() ``` -------------------------------- ### Period Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Period/Period.md Initializes a new instance of the Period class with default values. No specific setup is required to use this constructor. ```csharp public Period() ``` -------------------------------- ### Artist Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Artist/Artist.md Initializes a new instance of the Artist class. This constructor does not take any arguments. ```csharp public Artist() ``` -------------------------------- ### Default Label Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Label/Label.md Initializes a new instance of the Label class with default values. No specific setup is required to use this constructor. ```csharp public Label() ``` -------------------------------- ### QobuzApiInitializationException(string message, Exception innerException) Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Exceptions/QobuzApiInitializationException/QobuzApiInitializationException.md Initializes a new instance of the QobuzApiInitializationException class with a specified error message and a reference to the inner exception that is the cause of this exception. This is useful for handling exceptions that occur within other exceptions. ```APIDOC ## QobuzApiInitializationException(string message, Exception innerException) ### Description Initializes a new instance of the QobuzApiInitializationException class with a specified error message and a reference to the inner exception that is the cause of this exception. ### Method Constructor ### Parameters * **message** (string) - Required - The error message that explains the reason for the exception. * **innerException** (Exception) - Optional - The exception that is the cause of the current exception. If innerException is not null, the current exception is raised in a 'catch' block that handles the inner exception. ### Code Example ```csharp public QobuzApiInitializationException(string message, Exception innerException) ``` ``` -------------------------------- ### Focus Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Focus/Focus.md Initializes a new instance of the Focus class with default values. No specific setup is required to use this constructor. ```csharp public Focus() ``` -------------------------------- ### QobuzApiInitializationException() Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Exceptions/QobuzApiInitializationException/QobuzApiInitializationException.md Initializes a new instance of the QobuzApiInitializationException class with default values. This constructor is useful for creating a basic exception object when no specific error message or inner exception details are immediately available. ```APIDOC ## QobuzApiInitializationException() ### Description Initializes a new instance of the QobuzApiInitializationException class with default values. ### Method Constructor ### Parameters None ### Code Example ```csharp public QobuzApiInitializationException() ``` ``` -------------------------------- ### Artist() Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Artist/Artist.md Initializes a new instance of the Artist class with default values. ```APIDOC ## Artist() ### Description Initializes a new instance of the Artist class. ### Method Constructor ### Endpoint N/A ### Parameters None ### Request Example ```csharp var artist = new Artist(); ``` ### Response N/A ``` -------------------------------- ### Retrieve Track Details with QobuzApiService Source: https://context7.com/djdoubled/qobuzapisharp/llms.txt Fetches metadata for a specific track, including artist, album reference, duration, ISRC, and audio information. ```csharp using QobuzApiSharp.Service; using QobuzApiSharp.Models.Content; using QobuzApiService apiService = new QobuzApiService("APP_ID", "APP_SECRET"); Track track = apiService.GetTrack("64868187"); Console.WriteLine($"Title : {track.Title}"); Console.WriteLine($"Artist : {track.Performer?.Name}"); Console.WriteLine($"Duration : {track.Duration} seconds"); Console.WriteLine($"ISRC : {track.Isrc}"); ``` -------------------------------- ### Get User Favorite Tracks Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/UserFavorites/Tracks.md Retrieves a paginated list of tracks that the user has favorited. This property returns an ItemSearchResult object containing the tracks. ```APIDOC ## Get User Favorite Tracks ### Description Retrieves a paginated list of tracks that the user has favorited. ### Method GET ### Endpoint /user/favorites/tracks ### Parameters #### Query Parameters - **limit** (int) - Optional - The maximum number of items to return. - **offset** (int) - Optional - The number of items to skip before starting to collect the result set. ### Response #### Success Response (200) - **items** (Track[]) - A list of Track objects. - **total** (int) - The total number of items available. - **next_page_token** (string) - A token to retrieve the next page of results. ``` -------------------------------- ### Search Tracks by Keyword with QobuzApiService Source: https://context7.com/djdoubled/qobuzapisharp/llms.txt Searches for tracks using a keyword and returns a SearchResult containing a paginated collection of tracks. ```csharp using QobuzApiSharp.Service; using QobuzApiSharp.Models.Content; using QobuzApiService apiService = new QobuzApiService("APP_ID", "APP_SECRET"); SearchResult result = apiService.SearchTracks("Bohemian Rhapsody", limit: 5); foreach (var track in result.Tracks?.Items ?? Enumerable.Empty()) { Console.WriteLine($"{track.Performer?.Name} — {track.Title} [{track.Album?.Title}]"); } ``` -------------------------------- ### Award Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Award/Award.md Initializes a new instance of the Award class with default values. No specific setup is required beyond instantiating the class. ```csharp public Award() ``` -------------------------------- ### Default ReleaseTrackList Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/ReleaseTrackList/ReleaseTrackList.md Initializes a new instance of the ReleaseTrackList class. This constructor does not require any arguments. ```csharp public ReleaseTrackList() ``` -------------------------------- ### Service Utility Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Service/QobuzApiService.md Utility methods for the QobuzApiService. ```APIDOC ## Dispose() ### Description Releases the unmanaged resources and disposes of the managed resources used by the System.Net.Http.HttpMessageInvoker. ### Method Dispose ### Endpoint N/A ## IsAppSecretValid() ### Description Checks if the App Secret is valid by trying to fetch the streaming URL for the track with id 7398. User must be logged in before testing App Secret. ### Method GET (assumed) ### Endpoint /app/secret/valid (assumed) ``` -------------------------------- ### LoginWithEmail — Authenticate with Email and MD5 Password Source: https://context7.com/djdoubled/qobuzapisharp/llms.txt Logs in a user and caches the returned user_auth_token inside the service for all subsequent authenticated calls. The password must be supplied as a lowercase MD5 hex string. Requires a helper function to compute the MD5 hash. ```csharp using System.Security.Cryptography; using System.Text; using QobuzApiSharp.Service; using QobuzApiSharp.Models.User; using QobuzApiSharp.Exceptions; static string ToMd5(string input) { using var md5 = MD5.Create(); byte[] bytes = md5.ComputeHash(Encoding.UTF8.GetBytes(input)); return string.Concat(bytes.Select(b => b.ToString("x2"))); } using QobuzApiService apiService = new QobuzApiService("APP_ID", "APP_SECRET"); try { Login login = apiService.LoginWithEmail("user@example.com", ToMd5("mypassword")); Console.WriteLine($"Logged in as : {login.User.Login}"); Console.WriteLine($"Auth token : {login.AuthToken}"); Console.WriteLine($"Subscription : {login.User.Subscription?.Offer}"); } catch (ApiErrorResponseException ex) { Console.WriteLine($"Login failed [{ex.ResponseStatusCode}]: {ex.ResponseReason}"); } ``` -------------------------------- ### UserFavorites Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/UserFavorites.md Initializes a new instance of the UserFavorites class. ```APIDOC ## UserFavorites() ### Description The default constructor for the UserFavorites class. ### Method Constructor ### Endpoint N/A ### Parameters None ### Request Example None ### Response None ### Response Example None ``` -------------------------------- ### MostPopularContentConverter Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Converters/MostPopularContentConverter/MostPopularContentConverter.md Initializes a new instance of the MostPopularContentConverter class with default settings. ```APIDOC ## MostPopularContentConverter() ### Description The default constructor for the MostPopularContentConverter class. ### Method MostPopularContentConverter() ### Parameters None ### Returns An instance of the MostPopularContentConverter class. ``` -------------------------------- ### Image() Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Image/Image.md The default constructor for the Image class. It initializes a new instance of the Image class with default values. ```APIDOC ## Image() ### Description Initializes a new instance of the Image class. ### Method Constructor ### Endpoint N/A ### Parameters None ### Request Example ```csharp var image = new Image(); ``` ### Response None ``` -------------------------------- ### Default Constructor for QobuzApiStatusResponse Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models/QobuzApiStatusResponse/QobuzApiStatusResponse.md Initializes a new instance of the QobuzApiStatusResponse class with default values. This constructor is typically used when creating an object without providing specific initial states. ```csharp public QobuzApiStatusResponse() ``` -------------------------------- ### Get Label with Albums Source: https://context7.com/djdoubled/qobuzapisharp/llms.txt Retrieves a record label's details and optionally its album catalog. Use 'albums' for extra data and specify a limit for the results. ```csharp using QobuzApiSharp.Service; using QobuzApiSharp.Models.Content; using QobuzApiService apiService = new QobuzApiService("APP_ID", "APP_SECRET"); Label label = apiService.GetLabel("76182", extra: "albums", limit: 20); Console.WriteLine($"Label : {label.Name}"); Console.WriteLine($"Albums : {label.Albums?.Total}"); foreach (var album in label.Albums?.Items?.Take(5) ?? Enumerable.Empty()) { Console.WriteLine($" {album.Title}"); } ``` -------------------------------- ### Default Constructor Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Exceptions/ApiResponseParseErrorException/ApiResponseParseErrorException.md Use this constructor when no specific message or context is needed. ```csharp public ApiResponseParseErrorException() ``` -------------------------------- ### Get Playlist with Tracks Source: https://context7.com/djdoubled/qobuzapisharp/llms.txt Retrieves a playlist by its ID, including track information. Requires authentication and can fetch additional details like tracks and subscriber count. ```csharp using QobuzApiSharp.Service; using QobuzApiSharp.Models.Content; using QobuzApiService apiService = new QobuzApiService("APP_ID", "APP_SECRET"); apiService.LoginWithEmail("user@example.com", ToMd5("mypassword")); Playlist playlist = apiService.GetPlaylist("12345678", withAuth: true, extra: "tracks", limit: 50); Console.WriteLine($"Name : {playlist.Name}"); Console.WriteLine($"Owner : {playlist.Owner?.Name}"); Console.WriteLine($"Tracks : {playlist.TracksCount}"); foreach (var track in playlist.Tracks?.Items?.Take(5) ?? Enumerable.Empty()) { Console.WriteLine($" {track.Title} — {track.Performer?.Name}"); } ``` -------------------------------- ### Focus() Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Focus/Focus.md Initializes a new instance of the Focus class with default values. ```APIDOC ## Focus() ### Description The default constructor for the Focus class. ### Method public Focus() ### Endpoint N/A (Constructor) ### Parameters None ### Request Example N/A ### Response N/A (Constructor) ### Response Example N/A ``` -------------------------------- ### Get Artist Albums Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/Artist/Albums.md Access the Albums property of an Artist object to retrieve a collection of albums by that artist. This property returns an ItemSearchResult containing Album objects. ```APIDOC ## Get Artist Albums ### Description Retrieves a list of albums associated with a specific artist. ### Method Access (Property) ### Endpoint Not applicable (SDK property) ### Parameters None ### Request Example ```csharp // Assuming 'artist' is an instance of the Artist class var albumsSearchResult = artist.Albums; ``` ### Response #### Success Response - **albumsSearchResult** (ItemSearchResult) - An object containing the search results for albums, including the list of albums and pagination information. ``` -------------------------------- ### QobuzApiInitializationException Protected Constructor for Serialization Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Exceptions/QobuzApiInitializationException/QobuzApiInitializationException.md Initializes a new instance of the QobuzApiInitializationException class with serialized data. This constructor is protected and typically used during deserialization. ```csharp protected QobuzApiInitializationException(SerializationInfo info, StreamingContext context) ``` -------------------------------- ### FileUrl.MimeType Source: https://github.com/djdoubled/qobuzapisharp/blob/master/docs/QobuzApiSharp.Models.Content/FileUrl/MimeType.md The MimeType property of the FileUrl class allows you to get or set the MIME type associated with a file URL. This is useful for identifying the type of content the URL points to. ```APIDOC ## FileUrl.MimeType Property ### Description Represents the MIME type of the file URL. ### Property Type `string` ### Accessors - `get`: Retrieves the MIME type. - `set`: Sets the MIME type. ### Example ```csharp string mimeType = fileUrl.MimeType; fileUrl.MimeType = "audio/mpeg"; ``` ```