Last active
July 27, 2016 18:39
-
-
Save bhague1281/59256ab3d4d96cd8ce49b402646c2e9e 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 request = require('request'); | |
const API_ENDPOINT = 'http://pokeapi.co/api/v2/pokemon/'; | |
request(API_ENDPOINT, (error, response, body) => { | |
console.log(body); | |
// { | |
// "count": 811, | |
// "previous": null, | |
// "results": [ | |
// { | |
// "url": "http://pokeapi.co/api/v2/pokemon/1/", | |
// "name": "bulbasaur" | |
// }, | |
// { | |
// "url": "http://pokeapi.co/api/v2/pokemon/2/", | |
// "name": "ivysaur" | |
// }, | |
// .... | |
// } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment