mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-27 00:16:26 +00:00
29 lines
1.2 KiB
C#
29 lines
1.2 KiB
C#
using System.Threading.Tasks;
|
||
|
||
namespace SpotifyAPI.Web
|
||
{
|
||
/// <summary>
|
||
/// Endpoints for retrieving information about a user’s profile.
|
||
/// </summary>
|
||
/// <remarks>https://developer.spotify.com/documentation/web-api/reference-beta/#category-user-profile</remarks>
|
||
public interface IUserProfileClient
|
||
{
|
||
/// <summary>
|
||
/// Get detailed profile information about the current user (including the current user’s username).
|
||
/// </summary>
|
||
/// <remarks>
|
||
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-current-users-profile
|
||
/// </remarks>
|
||
/// <exception cref="APIUnauthorizedException">Thrown if the client is not authenticated.</exception>
|
||
Task<PrivateUser> Current();
|
||
|
||
/// <summary>
|
||
/// Get public profile information about a Spotify user.
|
||
/// </summary>
|
||
/// <remarks>https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-users-profile</remarks>
|
||
/// <exception cref="APIUnauthorizedException">Thrown if the client is not authenticated.</exception>
|
||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
|
||
Task<PublicUser> Get(string userId);
|
||
}
|
||
}
|