public class YoutubeUserActivityProvider extends YoutubeProvider
config, youtube
Constructor and Description |
---|
YoutubeUserActivityProvider() |
YoutubeUserActivityProvider(YoutubeConfiguration config) |
Modifier and Type | Method and Description |
---|---|
protected Runnable |
getDataCollector(BackOffStrategy strategy,
BlockingQueue<StreamsDatum> queue,
com.google.api.services.youtube.YouTube youtube,
UserInfo userInfo) |
static void |
main(String[] args)
To use from command line:
|
cleanUp, createYouTubeClient, getConfig, getId, isRunning, prepare, readCurrent, readNew, readRange, setConfig, setDefaultAfterDate, setDefaultBeforeDate, setUserInfoWithAfterDate, setUserInfoWithDefaultDates, startStream
public YoutubeUserActivityProvider()
public YoutubeUserActivityProvider(YoutubeConfiguration config)
public static void main(String[] args) throws Exception
Supply (at least) the following required configuration in application.conf:
youtube.oauth.pathToP12KeyFile youtube.oauth.serviceAccountEmailAddress youtube.apiKey youtube.youtubeUsers
Launch using:
mvn exec:java -Dexec.mainClass=org.apache.streams.youtube.provider.YoutubeUserActivityProvider -Dexec.args="application.conf tweets.json"
args
- argsException
- Exceptionprotected Runnable getDataCollector(BackOffStrategy strategy, BlockingQueue<StreamsDatum> queue, com.google.api.services.youtube.YouTube youtube, UserInfo userInfo)
getDataCollector
in class YoutubeProvider
Copyright © 2018 The Apache Software Foundation. All rights reserved.