Last active
May 18, 2020 17:29
-
-
Save wdchris/3882d2df2a815c8914f26b0639ed6164 to your computer and use it in GitHub Desktop.
Load boards from the Trello api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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