norberteder / trello

Use the Trello API from Node
332 stars 250 forks source link

set data in global variable #94

Closed ghost closed 4 years ago

ghost commented 4 years ago

I love this package but i can't save data into var like this

var id =""; api.getBoards('Shinkoz').then(boardName => { id = boardName[0].id }

is there a method for this?