Last active
June 19, 2017 23:25
-
-
Save dance2die/2ab0c052994b8f500501589917d7f202 to your computer and use it in GitHub Desktop.
secondAttempt()
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
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