Created
May 20, 2019 18:08
-
-
Save cbrum11/51202468684a47df9be7a523137171e4 to your computer and use it in GitHub Desktop.
JavaScript API Calls
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
let apiKey = "api#" | |
let url = "https://apiURL" | |
fetch(url+'&appid='+apiKey) | |
.then((data)=>{return data.json()}) | |
.then(res=>{console.log(res)}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment