Skip to content

Instantly share code, notes, and snippets.

@dance2die

dance2die/app.js

Created Jul 8, 2017
Embed
What would you like to do?
Importing apiKeys.js and using it in other JavaScript file
import apiConfig from '../../apikeys';
...
getShelfBooksURL() {
// https://www.goodreads.com/api/index#reviews.list
let goodReadsURL = ` https://www.goodreads.com/review/list`;
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.