Last active
October 26, 2016 18:23
-
-
Save ClaudiuCeia/fc786088a74207e09572c406c6211583 to your computer and use it in GitHub Desktop.
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
const headers = { | |
'Accept': 'application/json', | |
'Content-Type': 'application/json' | |
} | |
const latest_commits = fetch(process.env.REACT_APP_GITHUB_COMMITS_URL, { | |
method: 'GET', | |
headers: headers | |
}).then(response => { | |
console.log(response.json()) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment