To make integrating .NET client applications easier with the Mingle API we now have an open source project. An installer for the DLLs needed to call the Mingle API programmatically from a .NET client is included with this post. The source is on Github. The binaries are available as a NuGet package.
API and object model documentation is provided in MS help viewer (chm) format.
Support: Since this is open source I am supporting it myself. Feel free to post here, on my blog or email me at mrichter@thoughtworks.com.
There is some sample code below.
Code Snippet
using ThoughtWorksMingleLib;
namespace Samples
{
public class SampleClass
{
public void OneSample()
{
const string MINGLEHOST = "http://localhost:8080";
const string MINGLEUSER = "mingleuser";
const string MINGLEPASSWORD = "secret";
// Connect to Mingle
var mingle = new MingleServer(MINGLEHOST, MINGLEUSER, MINGLEPASSWORD);
// Get a project
var project = mingle.GetProject("test");
// Get a card
var card = project.GetCard(4);
// Create a new card
var newCard = project.CreateCard("story", "make a new widget");
// Get a bunch of cards for a view (favorite)
var view = project.GetView("Sprint List");
}
}
}
Comments
1 comment
Mark, It's a great library gives a head start to anyone looking to integrate mingle.
I see you haven't added support for the Attachment API, do you have any plans to add this to the library?
Please sign in to leave a comment.