{"size": 283, "ext": "js", "max_stars_repo_path": "client/src/utils/API.js", "max_stars_repo_name": "MJL1993/googlebooks", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/src/utils/API.js", "max_issues_repo_name": "MJL1993/googlebooks", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/src/utils/API.js", "max_forks_repo_name": "MJL1993/googlebooks", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.7272727273, "max_line_length": 83, "alphanum_fraction": 0.6183745583}
import axios from "axios";

const API =  {
    search: function(query) {
        return axios.get("https://www.googleapis.com/books/v1/volumes?q=" + query);
    },
    saveBook: function(bookInfo) {
        return axios.post(`/api/books/${bookInfo.id}`);
    }
};
export default API;