Created
September 2, 2017 19:53
-
-
Save alundiak/ad0ac07b18106c733e78081d155a2d0f to your computer and use it in GitHub Desktop.
Code to fix github notifications
This file contains hidden or 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
const apiUrl = 'https://api.github.com'; | |
var url = apiUrl + '/notifications?participating=true&access_token=MY_TOKEN'; | |
fetch(url) | |
.then(response => response.json()) | |
.then(data => { | |
console.log(data); // returned array with ONLY one notification, from where I took URL | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment