Created
March 11, 2017 12:38
-
-
Save taylorstine/4dcd88f380faeaa37dbcba3c72822c27 to your computer and use it in GitHub Desktop.
A basic image requester
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
//request is the module we'll be using to make network calls. | |
//https://github.com/request/request | |
import request from "request" | |
function requestImage(imageUrl) { | |
request(imageUrl, (err, response, body)=>{ | |
const theImage = body; | |
///do something with the image | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment