We want to use yandex disk api. Users can upload and delete files using the yandex disk.
I think getting a token from a login page. I tried a lot of sdk but I couldn't find the sample code working properly.
Could you help? i use https://github.com/yandex-disk/yandex-disk-sdk-csharp sdk
but sdk is WPF i use winform
this.sdkClient.AuthorizeAsync(new WebBrowserBrowser(browser), CLIENT_ID, RETURN_URL, this.CompleteCallback);
…
private void CompleteCallback(object sender, GenericSdkEventArgs<string> e)
{
if (this.AuthCompleted != null)
{
this.AuthCompleted(this, new GenericSdkEventArgs<string>(e.Result));
}
this.Close();
}
public event EventHandler<GenericSdkEventArgs<string>> AuthCompleted;
Implementing the solution to your problem at the bottom of the page on GitHub: https://github.com/raidenyn/yandexdisk.client