Hey,
I can log in to Fogbuz, but when I try to log in by xml it will not log on. Following this is a log on attempt. Any ideas why it will not work out?
thanks Brandon Marick
public bool Login(string email, string password)
{
Url url = new Url(Api.BaseApiUrl);
url.AddExtension(this.ApiExtension);
url.AddQuery("cmd", "logon");
url.AddQuery("email", email);
url.AddQuery("password", password);
XmlDocument xml = new XmlDocument();
WebResponse response = url.Post();
xml.Load(response.GetResponseStream());
response.Close();
if(xml.GetElementsByTagName("error").Count > 0)
return(false);
this.ApiSessionToken = xml.GetElementsByTagName("token")[0].InnerText;
this.ApiLoggedIn = true;
this.ApiLogonEmail = email;
if (this.Filters.Values.Any(f => f.status == "current"))
this.OriginalFilter = this.Filters.Values.Where(f => f.status == "current").First();
else
this.OriginalFilter = null;
this.SetFilter("All");
return(true);
}