Skip to content

Instantly share code, notes, and snippets.

@alundiak
Created September 2, 2017 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alundiak/ad0ac07b18106c733e78081d155a2d0f to your computer and use it in GitHub Desktop.
Save alundiak/ad0ac07b18106c733e78081d155a2d0f to your computer and use it in GitHub Desktop.
Code to fix github notifications
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