-
-
Save albertoperezf/090da3d6a495f2343074557d8a59d8a2 to your computer and use it in GitHub Desktop.
Fetch petition to unsplash.com
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
fetch(`https://api.unsplash.com/search/photos?page=1&query=${searchedForText}`, { | |
headers: { | |
Authorization: 'Client-ID abc123' | |
} | |
}).then(response => response.json()) | |
.then(addImage); | |
function addImage(data) { | |
debugger; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment