Skip to content

Instantly share code, notes, and snippets.

@wdchris
Last active May 18, 2020 17:29
Show Gist options
  • Save wdchris/3882d2df2a815c8914f26b0639ed6164 to your computer and use it in GitHub Desktop.
Save wdchris/3882d2df2a815c8914f26b0639ed6164 to your computer and use it in GitHub Desktop.
Load boards from the Trello api
getBoards() {
return new Promise((resolve, reject) => {
Trello.get(
"/members/me/boards/",
boards => resolve(boards),
error => reject(new Error(`Getting boards failed: ${error}`))
);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment