Trello Api Help

Hi, I need help with using the JavaScript Trello API.

So I want to create a card then straight away, add a label to it. How would I do that?