public class InstagramRecentMediaProvider extends InstagramAbstractProvider
StreamsProvider
that provides the recent media data for a group of users.
Retrieve recent posts from a list of user ids or names.Modifier and Type | Field and Description |
---|---|
static String |
STREAMS_ID |
client, dataQueue
Constructor and Description |
---|
InstagramRecentMediaProvider(InstagramRecentMediaProviderConfiguration 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.InstagramRecentMediaProvider \
-Dexec.args="application.conf media.json.txt"
|
cleanUp, getId, isRunning, prepare, readCurrent, readNew, readRange, startStream
public static final String STREAMS_ID
public InstagramRecentMediaProvider(InstagramRecentMediaProviderConfiguration 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.