C# Silverlight和Imgur。答复:未找到

C# Silverlight和Imgur。答复:未找到,c#,silverlight,imgur,C#,Silverlight,Imgur,你能帮我吗,我在上传图片到imgur时遇到了问题。我尝试了WebClient和HttpRequest,但都返回了“找不到错误” WebClient wc = new WebClient(); wc.OpenWriteCompleted += new OpenWriteCompletedEventHandler(wc_OpenWriteCompleted); Uri u = new Uri("http://api.imgur.com/2/upload");

你能帮我吗,我在上传图片到imgur时遇到了问题。我尝试了WebClient和HttpRequest,但都返回了“找不到错误”

  WebClient wc = new WebClient();
        wc.OpenWriteCompleted += new OpenWriteCompletedEventHandler(wc_OpenWriteCompleted);
        Uri u = new Uri("http://api.imgur.com/2/upload");
        wc.OpenWriteAsync(u, null, new object[] { imageData, byteread }); // Upload the file to the server
    }

    void wc_OpenWriteCompleted(object sender, OpenWriteCompletedEventArgs e) // The upload completed
    {
        if (e.Error == null)
        {
            Console.WriteLine(e.Result);
        }
    }

您如何处理代码中的身份验证?您必须向imagur注册才能使用API执行上载。