Created
September 26, 2016 13:39
-
-
Save sAbakumoff/e3e1b21c6d5b0aa4e2e862b7b6320f37 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var gcloud = require('google-cloud'); | |
var pubsub = gcloud.pubsub({ | |
projectId: 'in-full-gear', | |
keyFilename: __dirname + '/../secret/auth_key.json' | |
}); | |
var topic = pubsub.topic('debate_tweets'); | |
topic.get({autoCreate : true}, function(err, topic, apiResponse) { | |
if(err){ | |
console.log('Error getting topic : ', err); | |
} | |
else{ | |
startTracking(topic) | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment