its-rigs / Trolly

A Python wrapper around the Trello API. Provides a group of Python classes to represent Trello Objects. All classes come with basic Trello API method calls and are easily extensible to suit your needs. See the README for more details.
MIT License
100 stars 29 forks source link

More usage examples in ReadMe #44

Closed CCninja86 closed 4 years ago

CCninja86 commented 7 years ago

Hi,

Could you please update the ReadMe with more usage examples for functions, specifically ones such as add_card(). I can't figure out how to create a new card on a list.

its-rigs commented 7 years ago

Sure I'll try and flesh it out soon. In the mean time you can add a card like this:

list.add_card({'name': 'my new card'})

You can find the arguments that Trello accepts for this operation here https://developers.trello.com/advanced-reference/list#post-1-lists-idlist-cards

Hope that helps in the mean time.

ingsoctexas commented 4 years ago

Could you please share a snippet of code showing how to delete a card?

its-rigs commented 4 years ago

@ingsoctexas you would have to retrieve the card and then use close_card() method on that object. Hope that helps.

ingsoctexas commented 4 years ago

Certainly does- thank you!