Changed teknik pastebin to use real oauth

This commit is contained in:
Uncled1023 2020-08-22 16:23:49 -07:00
parent 4cc9bba3c2
commit 8b919c6894

View file

@ -56,7 +56,7 @@ public override GenericUploader CreateUploader(UploadersConfig config, TaskRefer
public override TabPage GetUploadersConfigTabPage(UploadersConfigForm form) => form.tpTeknik;
}
public sealed class TeknikPaster : TextUploader, IOAuth2Basic
public sealed class TeknikPaster : TextUploader, IOAuth2
{
public OAuth2Info AuthInfo { get; set; }
public string APIUrl { get; set; }
@ -81,6 +81,16 @@ public string GetAuthorizationURL()
return teknik.GetAuthorizationURL();
}
public bool RefreshAccessToken()
{
return teknik.RefreshAccessToken();
}
public bool CheckAuthorization()
{
return teknik.CheckAuthorization();
}
public override UploadResult UploadText(string text, string fileName)
{
Dictionary<string, string> args = new Dictionary<string, string>();