Last active
November 23, 2018 21:58
-
-
Save rootasjey/81447690613d71f193d954b660754b98 to your computer and use it in GitHub Desktop.
Fitbit fetch example
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
// Companion | |
fetch(encodeURI(url)) | |
.then(response => response.json()) | |
.then(data => { | |
// Post-processing | |
// ... | |
resolve(data) | |
}) | |
.catch(e => reject(e.message)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment