I've failed creating list/card using HTTP post. It seems that I did not understand:
- How to build the HTTP request
- From where to get the list ID/card ID to fill in the HTTP request
Can you give some examples how to create list/card and from where do I get the relevant ID?
Best Answer
As an example of card creation, I describe a bookmarklet that I use to create Trello cards from Stack Exchange questions. (More serious applications, e.g., interfacing accounts of other users, would be a topic at Stack Overflow rather than here.)
Here is what you will need:
https://trello.com/b/
(this is called "board id" below, although technically not the same thing).(for reading the response, it helps if you have a browser extension for formatting JSON).
After collecting the above data, put it in the following script and use any bookmarklet generator to wrap it up.
The script creates a card in your list for the SE site (assuming it exists), with the name being the title of the question, and the description being its URL (which becomes clickable in the Trello web interface). A confirmation message is shown.
Note: the bookmarklet uses jQuery. On Stack Exchange sites (and many others) jQuery is already loaded. If you are not sure if jQuery is available, include it with the bookmarklet (MrColes bookmarklet creator does this for you).