Skip to content

Instantly share code, notes, and snippets.

Last active Jun 19, 2017
What would you like to do?
var axios = require('axios');
var apiConfig = require('../apikey.js');
export default class YqlAjax {
ajax(url) {
const yqlUrl = "";
let goodReadsURL = `${url}?key=${apiConfig.goodreadsKey}&user_id=${apiConfig.goodreadsUserID}&page=1`;
let q = `select * from xml where url="${goodReadsURL}"`;
return axios.get(yqlUrl, {
params: {
q: q,
format: "json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment