2019-08-16 23:40:04 +01:00
|
|
|
|
# Profiles
|
|
|
|
|
|
|
|
|
|
## GetPrivateProfile
|
|
|
|
|
|
2016-08-20 11:49:09 +01:00
|
|
|
|
> Get detailed profile information about the current user (including the current user’s 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
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
---
|