From f55f83fca90e556844b52f1426ccce9b4b4be1c0 Mon Sep 17 00:00:00 2001 From: Ellie Frymire Date: Fri, 24 Aug 2018 14:55:32 -0400 Subject: [PATCH 1/2] testing deploy --- create-subscriptions.js | 8 ++++---- create-webhook-config.js | 5 +++-- get-webhook-config.js | 4 ++-- index.js | 4 ++-- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/create-subscriptions.js b/create-subscriptions.js index d159821..ba46e98 100644 --- a/create-subscriptions.js +++ b/create-subscriptions.js @@ -7,15 +7,15 @@ var auth = {} auth.twitter_oauth = { consumer_key: process.env.CONSUMER_KEY, consumer_secret: process.env.CONSUMER_SECRET, - token: process.env.ACCESS_TOKEN, - token_secret: process.env.ACCESS_SECRET + token: process.env.USER_TOKEN, // USER SPECIFIC + token_secret: process.env.USER_TOKEN_SECRET, // USER SPECIFIC } -// request options +//request options var request_options = { url: 'https://api.twitter.com/1.1/account_activity/all/dev/subscriptions.json', oauth: auth.twitter_oauth, - // resolveWithFullResponse: true + resolveWithFullResponse: true } console.log(request_options) diff --git a/create-webhook-config.js b/create-webhook-config.js index 13bc4dd..ff53df8 100644 --- a/create-webhook-config.js +++ b/create-webhook-config.js @@ -7,10 +7,11 @@ const auth = {} auth.twitter_oauth = { consumer_key: process.env.CONSUMER_KEY, consumer_secret: process.env.CONSUMER_SECRET, - token: process.env.ACCESS_TOKEN, - token_secret: process.env.ACCESS_SECRET + token: process.env.USER_TOKEN, // USER SPECIFIC + token_secret: process.env.USER_TOKEN_SECRET, // USER SPECIFIC } + // request options const request_options = { url: 'https://api.twitter.com/1.1/account_activity/all/dev/webhooks.json', diff --git a/get-webhook-config.js b/get-webhook-config.js index 0196f1f..3e5f12e 100644 --- a/get-webhook-config.js +++ b/get-webhook-config.js @@ -7,8 +7,8 @@ var auth = {} auth.twitter_oauth = { consumer_key: process.env.CONSUMER_KEY, consumer_secret: process.env.CONSUMER_SECRET, - token: process.env.ACCESS_TOKEN, - token_secret: process.env.ACCESS_SECRET + token: process.env.USER_TOKEN, // USER SPECIFIC + token_secret: process.env.USER_TOKEN_SECRET, // USER SPECIFIC } // request options diff --git a/index.js b/index.js index c33096e..150c1e4 100644 --- a/index.js +++ b/index.js @@ -14,8 +14,8 @@ const auth = {} auth.twitter_oauth = { consumer_key: process.env.CONSUMER_KEY, consumer_secret: process.env.CONSUMER_SECRET, - token: process.env.ACCESS_TOKEN, - token_secret: process.env.ACCESS_SECRET + token: process.env.USER_TOKEN, // USER SPECIFIC + token_secret: process.env.USER_TOKEN_SECRET, // USER SPECIFIC } auth.get_twitter_bearer_token = function () { From a8276634b0fa7b78c629925de434d8427d9f89a4 Mon Sep 17 00:00:00 2001 From: Ellie Frymire Date: Fri, 24 Aug 2018 16:09:18 -0400 Subject: [PATCH 2/2] user specific ids --- get-subscriptions-list.js | 4 ++-- get-subscriptions.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/get-subscriptions-list.js b/get-subscriptions-list.js index a9a242f..5ee3bdf 100644 --- a/get-subscriptions-list.js +++ b/get-subscriptions-list.js @@ -7,8 +7,8 @@ var auth = {} auth.twitter_oauth = { consumer_key: process.env.CONSUMER_KEY, consumer_secret: process.env.CONSUMER_SECRET, - token: process.env.ACCESS_TOKEN, - token_secret: process.env.ACCESS_SECRET + token: process.env.USER_TOKEN, // USER SPECIFIC + token_secret: process.env.USER_TOKEN_SECRET, // USER SPECIFIC } auth.get_twitter_bearer_token = function () { diff --git a/get-subscriptions.js b/get-subscriptions.js index 70fdbe2..9cb1b86 100644 --- a/get-subscriptions.js +++ b/get-subscriptions.js @@ -7,8 +7,8 @@ var auth = {} auth.twitter_oauth = { consumer_key: process.env.CONSUMER_KEY, consumer_secret: process.env.CONSUMER_SECRET, - token: process.env.ACCESS_TOKEN, - token_secret: process.env.ACCESS_SECRET + token: process.env.USER_TOKEN, // USER SPECIFIC + token_secret: process.env.USER_TOKEN_SECRET, // USER SPECIFIC } // request options