Spotify.NET/SpotifyAPI.Docs/versioned_docs/version-5.1.1/web/profiles.md

43 lines
881 B
Markdown
Raw Normal View History

2020-05-13 17:25:42 +01:00
---
id: profiles
title: Profiles
sidebar_label: Profiles
---
2019-08-16 23:40:04 +01:00
## GetPrivateProfile
2016-08-20 11:49:09 +01:00
> Get detailed profile information about the current user (including the current users username).
2019-08-16 23:40:04 +01:00
**Parameters**
2016-08-20 11:49:09 +01:00
|Name|Description|Example|
|--------------|-------------------------|-------------------------|
Returns a [PrivateProfile](https://developer.spotify.com/web-api/object-model/#user-object-private)
2019-08-16 23:40:04 +01:00
**Usage**
```csharp
2016-08-20 11:49:09 +01:00
PrivateUser user = _spotify.GetPrivateProfile();
Console.WriteLine(user.DisplayName);
```
---
2019-08-16 23:40:04 +01:00
## GetPublicProfile
2016-08-20 11:49:09 +01:00
> Get public profile information about a Spotify user.
2019-08-16 23:40:04 +01:00
**Parameters**
2016-08-20 11:49:09 +01:00
|Name|Description|Example|
|--------------|-------------------------|-------------------------|
|userId| The user's Spotify user ID. | EXAMPLE
Returns a [PublicProfile](https://developer.spotify.com/web-api/object-model/#user-object-public)
2019-08-16 23:40:04 +01:00
**Usage**
```csharp
2016-08-20 11:49:09 +01:00
```
---