Comments (4)
Sorry for the late answer. No, it's not possible.
If you have any ideas on how this could be designed I'm definately willing to listen.
from trello.net.
I just pushed a new feature: Trello.Advanced
.
It has four methods, Get
, Post
, Put
and Delete
. They all accept a uri and an object with additional arguments. The return type is either dynamic
or a type of your choosing.
This is how you could make that request:
dynamic myList = trello.Advanced.Get("/lists/1234567890abcdefghijklmn",
new { cards = "all" });
Console.WriteLine(myList.name);
foreach (var card in myList.cards)
Console.WriteLine(card.name);
You can also create your own type if you don't want to deal with dynamic:
public class MyList
{
public string Name { get; set; }
public IEnumerable<MyCard> Cards { get; set; }
}
public class MyCard
{
public string Name { get; set; }
}
MyList myList = trello.Advanced.Get<MyList>("/lists/1234567890abcdefghijklmn",
new { cards = "all" });
Console.WriteLine(myList.Name);
foreach (var card in myList.Cards)
Console.WriteLine(card.Name);
The trello api is documented here: https://trello.com/docs/index.html.
from trello.net.
Excellent, this is just what I needed. I really like the way you have implemented this. Good work!
From: Oskar Dillén [mailto:[email protected]]
Sent: 01 May 2014 15:33
To: dillenmeister/Trello.NET
Cc: pauldbentley
Subject: Re: [Trello.NET] Passing optional parameters (#50)
I just pushed a new feature: Trello.Advanced.
It has four methods, Get, Post, Put and Delete. They all accept a uri and an object with additional arguments. The return type is either dynamic or a type of your choosing.
This is how you could make that request:
dynamic myList = trello.Advanced.Get("/lists/1234567890abcdefghijklmn",
new { cards = "all" });
Console.WriteLine(myList.name);
foreach (var card in myList.cards)
Console.WriteLine(card.name);
You can also create your own type if you don't want to deal with dynamic:
public class MyList
{
public string Name { get; set; }
public IEnumerable Cards { get; set; }
}
public class MyCard
{
public string Name { get; set; }
}
MyList myList = trello.Advanced.Get("/lists/1234567890abcdefghijklmn",
new { cards = "all" });
Console.WriteLine(myList.Name);
foreach (var card in myList.Cards)
Console.WriteLine(card.Name);
The trello api is documented here: https://trello.com/docs/index.html.
—
Reply to this email directly or view it on GitHub #50 (comment) . https://github.com/notifications/beacon/5243982__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxNDU3Mzk1MiwiZGF0YSI6eyJpZCI6MjM2MDcxODB9fQ==--df6092f041ab19f8b56d336a1d9ba7ab43fdc9dd.gif
from trello.net.
Great! Let me know if you have any issues with it.
from trello.net.
Related Issues (20)
- You're a legend! HOT 2
- All requests returning null HOT 16
- Serialize Trello.net objects HOT 3
- Calling Cards.Delete throws an exception if there are attachments
- Trello have added new color labels HOT 2
- Everything returns null HOT 1
- Windows Phone support
- Copy a card using TrelloNet
- Get member information with cards
- Trello Exception when getting private data from previously authorized app HOT 1
- "Not enough admins" when trying to add members to boards
- Can' get boards for my account!
- Does not work with latest RestSharp HOT 1
- Could not convert string 'sky' to dictionary key type 'TrelloNet.Color' HOT 2
- Broken. use Trello.NET.Edge instead. HOT 1
- Is There has a API to add a card with customfield
- **TURN BACK!! THIS IS ABANDONWARE!!** HOT 1
- Can't Export complete Board to Json file using Trellonet
- Unhandled exception
- trello.Boards.WithId throws an exception HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trello.net.