Skip to content

Instantly share code, notes, and snippets.

@dance2die
Last active June 19, 2017 23:25
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 dance2die/2ab0c052994b8f500501589917d7f202 to your computer and use it in GitHub Desktop.
Save dance2die/2ab0c052994b8f500501589917d7f202 to your computer and use it in GitHub Desktop.
secondAttempt()
import YqlAjax from './yql_ajax';
...
secondAttempt() {
let yqlAjax = new YqlAjax();
yqlAjax.ajax(this.goodReadsURL)
.then((yqlResponse) => {
// DefiantJS XPath query for user shelf for "read" section.
let search = JSON.search(yqlResponse.data, "//*/user_shelf[name='read']");
console.log(search);
}).catch((error) => {
alert(`error: ${error}`);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment