Skip to content

Commit

Permalink
tumblr done
Browse files Browse the repository at this point in the history
  • Loading branch information
longshuicy authored Apr 22, 2017
1 parent 66d6fc5 commit f2a14ae
Showing 1 changed file with 42 additions and 3 deletions.
45 changes: 42 additions & 3 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
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;

0 comments on commit f2a14ae

Please sign in to comment.