public class InstagramCommentsProvider extends InstagramAbstractProvider
StreamsProvider
that provides comments on all items in a list of media.Modifier and Type | Field and Description |
---|---|
static String |
STREAMS_ID |
client, dataQueue
Constructor and Description |
---|
InstagramCommentsProvider(InstagramCommentsProviderConfiguration config) |
Modifier and Type | Method and Description |
---|---|
protected InstagramDataCollector |
getInstagramDataCollector()
Return the data collector to use to connect to instagram.
|
static void |
main(String[] args)
To use from command line:
Supply (at least) the following required configuration in application.conf:
instagram.clientKey
instagram.usersInfo.authorizedTokens
instagram.usersInfo.users
Launch using:
mvn exec:java \
-Dexec.mainClass=org.apache.streams.instagram.provider.recentmedia.InstagramCommentsProvider \
-Dexec.args="application.conf comments.json.txt"
|
cleanUp, getId, isRunning, prepare, readCurrent, readNew, readRange, startStream
public static final String STREAMS_ID
public InstagramCommentsProvider(InstagramCommentsProviderConfiguration config)
protected InstagramDataCollector getInstagramDataCollector()
InstagramAbstractProvider
getInstagramDataCollector
in class InstagramAbstractProvider
InstagramDataCollector
public static void main(String[] args) throws Exception
args
- argsException
- ExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.