public class TwitterPlugin extends de.deepamehta.core.osgi.PluginActivator implements TwitterService
AGGREGATION, CHARSET, CHILD_URI, COMPOSITION, COMPOSITION_DEF_EDGE_TYPE, DEEPAMEHTA_USERNAME_URI, DEEPAMEHTA_VERSION, GEO_COORDINATE_TOPIC_URI, GEO_LATITUDE_TYPE_URI, GEO_LONGITUDE_TYPE_URI, PARENT_URI, ROLE_CHILD_TYPE_URI, ROLE_PARENT_TYPE_URI, TWEET_CONTENT_URI, TWEET_ENTITIES_URI, TWEET_FAVOURITE_COUNT_URI, TWEET_ID_URI, TWEET_LOCATION_URI, TWEET_METADATA_URI, TWEET_SOURCE_BUTTON_URI, TWEET_TIME_URI, TWEET_URI, TWEET_WITHHELD_DMCA_URI, TWEET_WITHHELD_IN_URI, TWEET_WITHHELD_SCOPE_URI, TWEETED_TO_STATUS_ID, TWITTER_APPLICATION_KEY, TWITTER_APPLICATION_SECRET, TWITTER_AUTHENTICATION_URL, TWITTER_KEY, TWITTER_RESEARCH_VERSION, TWITTER_SEARCH_BASE_URL, TWITTER_SEARCH_LANG_URI, TWITTER_SEARCH_LOCATION_URI, TWITTER_SEARCH_MAX_TWEET_URI, TWITTER_SEARCH_NEXT_PAGE_URI, TWITTER_SEARCH_REFRESH_URL_URI, TWITTER_SEARCH_RESULT_SIZE_URI, TWITTER_SEARCH_TIME_URI, TWITTER_SEARCH_TYPE_URI, TWITTER_SEARCH_URI, TWITTER_SECRET, TWITTER_USER_ID_URI, TWITTER_USER_IMAGE_URI, TWITTER_USER_NAME_URI, TWITTER_USER_URI, WS_WEB_RESEARCH_NAME, WS_WEB_RESEARCH_URI| Constructor and Description |
|---|
TwitterPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Initialize the migrated soundsets ACL-Entries.
|
de.deepamehta.core.Topic |
searchMoreTweets(long searchId,
boolean nextPage)
This method executes an existing search-query to either:
(a) fetch more (older) tweets for the same query or
(b) fetch new tweets and assign them to the current search result
|
de.deepamehta.core.Topic |
searchPublicTweets(long searchId,
String query,
String resultType,
String lang,
String location)
Fetches public tweets matching the given
query, maintains a search-query topic and
references existing tweets and users, as it should be. |
public void init()
init in interface de.deepamehta.core.osgi.PluginContextinit in class de.deepamehta.core.osgi.PluginActivatorpublic de.deepamehta.core.Topic searchMoreTweets(long searchId,
boolean nextPage)
searchMoreTweets in interface TwitterServicesearchId - id of the "Twitter-Search"-Topic to operate onnextPage - true for paging query to next page;
false for fetching most recent tweetspublic de.deepamehta.core.Topic searchPublicTweets(long searchId,
String query,
String resultType,
String lang,
String location)
query, maintains a search-query topic and
references existing tweets and users, as it should be.searchPublicTweets in interface TwitterServicesearchId - Twitter Search Topic IdresultType - "mixed", "recent", "popular"lang - ISO-639-1 Code (2 chars) (optional)location - "lat,lng,radiuskm" (optional)Copyright © 2018. All rights reserved.