Created
July 8, 2017 23:11
-
-
Save dance2die/52b8031861bd358f7cb30e20b85b6a33 to your computer and use it in GitHub Desktop.
Importing apiKeys.js and using it in other JavaScript file
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 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