mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Changed teknik pastebin to use real oauth
This commit is contained in:
parent
4cc9bba3c2
commit
8b919c6894
1 changed files with 11 additions and 1 deletions
|
@ -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>();
|
||||
|
|
Loading…
Reference in a new issue