Skip to content

Instantly share code, notes, and snippets.



Created Jul 8, 2017
What would you like to do?
Importing apiKeys.js and using it in other JavaScript file
import apiConfig from '../../apikeys';
getShelfBooksURL() {
let goodReadsURL = ``;
let q = `v=2&key=${apiConfig.goodreadsKey}&id=${apiConfig.goodreadsUserID}&shelf=read&sort=date_started`;
return {goodReadsURL, q};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.