raidenyn / yandexdisk.client

Yandex Disk API Client for .NET
MIT License
40 stars 14 forks source link

C#. How can I get the current user's email after successful connection #18

Open neomasterhub opened 2 years ago

neomasterhub commented 2 years ago

This is necessary to display whose disk is currently being used in the WinForms app.

DiskHttpApi yd = new DiskHttpApi(token);
Task<Disk> di = yd.MetaInfo.GetDiskInfoAsync();
var currentUserEmail - di.?;