From f2a14ae7bfb9ec5944f0c7052849a898e86eab9f Mon Sep 17 00:00:00 2001 From: longshuicy Date: Sat, 22 Apr 2017 13:16:56 -0500 Subject: [PATCH] tumblr done --- config.js | 45 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/config.js b/config.js index 78758af..6745c5d 100644 --- a/config.js +++ b/config.js @@ -2,8 +2,8 @@ require('dotenv').config(); var config = {}; config.twitter = {}; - config.twitter.consumer_key = process.env.TWITTER_CONSUMER_KEY || 'key'; - config.twitter.consumer_secret = process.env.TWITTER_CONSUMER_SECRET || 'password'; + config.twitter.consumer_key = process.env.TWITTER_CONSUMER_KEY; + config.twitter.consumer_secret = process.env.TWITTER_CONSUMER_SECRET; config.twitter.access_token_key = process.env.TWITTER_ACCESS_TOKEN_KEY; config.twitter.access_token_secret = process.env.TWITTER_ACCESS_TOKEN_SECRET; @@ -12,4 +12,43 @@ var config = {}; config.fb.app_secret = process.env.FACEBOOK_APP_SECRET; config.fb.access_token = process.env.FACEBOOK_ACCESS_TOKEN; - module.exports = config; \ No newline at end of file + config.flickr = {}; + config.flickr.consumer_key = process.env.FLICKR_CONSUMER_KEY; + config.flickr.consumer_secret = process.env.FLICKR_CONSUMER_SECRET; + config.flickr.access_token = process.env.FLICKR_ACCESS_TOKEN; + config.flickr.access_token_secret = process.env.FLICKR_ACESS_TOKEN_SECRET; + + config.spotify = {}; + config.spotify.client_id = process.env.SPOTIFY_CLIENT_ID; + config.spotify.client_secret = process.env.SPOTIFY_CLIENT_SECRET; + config.spotify.callback = process.env.CALLBACK_URL; + + config.youtube = {}; + config.youtube.api_key = process.env.YOUTUBE_API_KEY; + config.youtube.client_id = process.env.YOUTUBE_CLIENT_ID; + config.youtube.client_secret = process.env.YOUTUBE_CLIENT_SECRET; + config.youtube.access_token = process.env.YOUTUBE_ACCESS_TOKEN; + config.youtube.refresh_token = process.env.YOUTUBE_REFRESH_TOKEN; + //config.youtube.code = process.env.YOUTUBE_CODE; + config.youtube.callback = process.env.CALLBACK_URL; + + config.reddit = {}; + config.reddit.client_id = process.env.REDDIT_CLIENT_ID; + config.reddit.client_secret = process.env.REDDIT_CLIENT_SECRET; + config.reddit.userAgent = process.env.REDDIT_USERAGENT; + config.reddit.username = process.env.REDDIT_USERNAME; + config.reddit.password = process.env.REDDIT_PASSWORD; + + config.weibo = {}; + config.weibo.app_key = process.env.WEIBO_APP_KEY; + config.weibo.app_secret = process.env.WEIBO_APP_SECRET; + config.weibo.access_token = process.env.WEIBO_ACCESS_TOKEN; + config.weibo.callback = process.env.WEIBO_CALLBACK_URL; + + config.tumblr = {}; + config.tumblr.consumer_key = process.env.TUMBLR_CONSUMER_KEY; + config.tumblr.comsumer_secret = process.env.TUMBLR_CONSUMER_SECRET; + config.tumblr.access_token = process.env.TUMBLR_ACCESS_TOKEN; + config.tumblr.access_token_secret = process.env.ACCESS_TOKEN_SECRET; + +module.exports = config; \ No newline at end of file