README example adapted, fixes #443

This commit is contained in:
Jonas Dellinger 2020-04-25 23:10:28 +02:00 committed by GitHub
parent 6dff475897
commit 8442145e88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,9 +45,9 @@ public static async void Example()
TokenType = "Bearer"
};
PrivateProfile profile = await api.GetPrivateProfileAsync();
if(!profile.HasError()) {
Console.WriteLine(profile.DisplayName);
FullTrack track = await api.GetTrackAsync("1eV81a6H4xDdpi8r2C4tQT");
if(!track.HasError()) {
Console.WriteLine(track.Name);
}
}
```