I have a C# application which I'm trying to hook up with Trello. I want to create a board and then post a bunch of cards to it.
Sadly, I'm completely stumped with the first part, creating a board. I've managed to successfully follow the various examples on reading member details and member's boards, but have got nowhere with creating a board.
My code so far looks like this:
var client = new RestClient(ApiBaseUrl);
var request = new RestRequest { Resource = "/members/<user>/boards/actions/createBoard", RequestFormat = DataFormat.Json };
request.AddParameter("key", AuthKey);
request.Method = Method.GET;
request.AddParameter("name", "APITest");
request.AddParameter("desc", "this is the description");
var response = client.Execute<Board>(request);
I have tried many different variations of the RestRequest Resource and the current error is:
An error occurred while parsing EntityName. Line 1, position 2399
And the content of the response is a big HTML page. The Data property is null.
Does anyone have any words of wisdom? A working createBoard example?