Created
February 26, 2020 03:48
-
-
Save nyancodeid/a0b0288f9ee985ba643e4803dc1fe9a4 to your computer and use it in GitHub Desktop.
OMDBApi Ajax
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
function getData () { | |
$.ajax({ | |
url:'https://www.omdbapi.com', | |
type:'GET', | |
dataType:'json', | |
data:{ | |
'apikey' : 'API_KEY_OMDBAPI', //API Key | |
'i' : "tt3896196" | |
}, | |
success: function(data) { | |
console.log(data) | |
} | |
}) | |
} | |
getData() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment