Permalink
Browse files

Removed Lithiio unsupported upload urls

  • Loading branch information...
Jaex committed Oct 15, 2016
1 parent a948c6f commit 76b4612d5893d2c5dcce4141e75d7e6f3db4ce42
@@ -64,18 +64,16 @@ public Lithiio(LithiioSettings config)
private const string uploadUrl = "http://api.lithi.io/v3/";
public static string[] UploadURLs = new string[] { "https://i.lithi.io/", "https://lithi.io/i/", "https://i.mugi.io/", "https://mugi.io/i/" };
public override UploadResult Upload(Stream stream, string fileName)
{
Dictionary<string, string> arguments = new Dictionary<string, string>();
arguments.Add("key", Config.UserAPIKey);
arguments.Add("linktype", Config.UploadURL);
UploadResult result = UploadData(stream, uploadUrl, fileName, "file", arguments);
if (result.IsSuccess)
{
LithiioResponse response = JsonConvert.DeserializeObject<LithiioResponse>(result.Response);
if (response.Success)
{
result.URL = response.URL;
@@ -100,6 +98,5 @@ public class LithiioResponse
public class LithiioSettings
{
public string UserAPIKey { get; set; } = "";
public string UploadURL { get; set; } = "https://i.lithi.io/";
}
}
Oops, something went wrong.

0 comments on commit 76b4612

Please sign in to comment.