Reputation: 153
I am trying to login into fogbugz using my c# application.I am using FogBugz XML API. The code that I am currently using is:
<form method="post" action="https://xxxxx.fogbugz.com/api.asp?cmd=logon">
Email:
<input type="text" value="email" name="email">
<br />
Password:
<input type="password" value="password" name="password">
<br />
<input type="submit">
<br />
</form>
When I do this I do get logged into FogBugz.I get an XML file as output where I have my token under tags.
Is there any way to make the user see an aspx file and not the XML file but I could use the XML file and cache the token value? I am new to FogBugz please help! Thank you.
Upvotes: 0
Views: 723
Reputation: 1
I would recommend checking out FogLampz.
It allows you to write code such as:
FogBugzClient.LogOn("https://myproject.fogbugz.com/api.asp",
"[email protected]", "password");
var projects = FogBugzClient.GetProjects();
var areas = FogBugzClient.GetAreas();
Use this in your code-behind for your aspx page. (you wont need your form action pointing to fogbugz)
You can then display/modify/do-anything-to the results as you wish.
Alternatively there is the Fogbugz Csharp API Wrapper which allows very similar coding style to pull out FogBugz data.
Upvotes: 0