Skip to content

Instantly share code, notes, and snippets.

@rohan-varma
Last active September 3, 2016 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohan-varma/4b5ec89548cf1f849bc4669cd9f526ca to your computer and use it in GitHub Desktop.
Save rohan-varma/4b5ec89548cf1f849bc4669cd9f526ca to your computer and use it in GitHub Desktop.
ajax.get('http://website.com/api/v1/pokemonlightweight/1')
.done((data) => {
const moveIDString = getMoveString(data); //parse the move id from the response
ajax.get('http://website.com/api/v1/moves/${moveIDString}')
.done((data) => { //process the favorite move data
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment