public class Instagram extends BaseSource<Instagram>
| Modifier and Type | Class and Description |
|---|---|
static class |
Instagram.Type |
BaseSource.AuthParams, BaseSource.ResourceParamsauth, config, log, parameters, resources, type| Constructor and Description |
|---|
Instagram(DataSiftConfig config) |
| Modifier and Type | Method and Description |
|---|---|
Instagram |
addOAutToken(java.lang.String oAuthAccessToken,
long expires,
java.lang.String name)
Adds an OAuth token to the managed source
|
protected Instagram |
addResource(Instagram.Type type,
java.lang.String value,
float longitude,
float lattitude,
int distance,
boolean exactMatch,
java.lang.String fourSquareLocation)
Adds a resource object to the request of the given type, which is always required
|
Instagram |
byTag(java.lang.String tag,
boolean exactMatch)
Adds a resource by tag
|
Instagram |
enableCommentCounts(boolean enabled)
set to true, if you want to receive comment count interactions.
|
Instagram |
enableComments(boolean enabled)
set to true, if you want to receive comment interactions.
|
Instagram |
enableLikeCounts(boolean enabled)
set to true, if you want to receive like count interactions.
|
Instagram |
enableLikes(boolean enabled)
set to true, if you want to receive like interactions.
|
getAuthAsJSON, getParametersAsJSON, getResourcesAsJSON, hasAuth, hasParams, hasResources, newAuthParams, newResourceParams, setParametersField, typepublic Instagram(DataSiftConfig config)
public Instagram enableLikes(boolean enabled)
public Instagram enableComments(boolean enabled)
public Instagram enableCommentCounts(boolean enabled)
public Instagram enableLikeCounts(boolean enabled)
public Instagram byTag(java.lang.String tag, boolean exactMatch)
tag - the tag, e.g catexactMatch - true when a tag must be an exact match or false when the tag should match the instragram tag
search behaviourprotected Instagram addResource(Instagram.Type type, java.lang.String value, float longitude, float lattitude, int distance, boolean exactMatch, java.lang.String fourSquareLocation)
type - the type of resource, all other params are optional dependent upon what this value ispublic Instagram addOAutToken(java.lang.String oAuthAccessToken, long expires, java.lang.String name)
oAuthAccessToken - an oauth2 tokenname - a human friendly name for this auth tokenexpires - identity resource expiry date/time as a UTC timestamp, i.e. when the token expiresCopyright © 2018. All Rights Reserved.