public class CryptoControlApi extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
CryptoControlApi.OnResponseHandler<T> |
| Constructor | Description |
|---|---|
CryptoControlApi(String apiKey) |
A simple constructor which sets a API key
|
CryptoControlApi(String apiKey,
String proxyURL) |
A contructor which allows a proxy URL to be set.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
enableSentiment() |
|
void |
getCoinDetails(String coinName,
CryptoControlApi.OnResponseHandler<CoinDetail> callback) |
Get coin summary from the cryptocontrol API
|
void |
getLatestFeedByCoin(Language lang,
String coinName,
CryptoControlApi.OnResponseHandler<List<Feed>> callback) |
Get a single feed (articles/tweets/reddit) for a specific coin from the CryptoControl API.
|
void |
getLatestFeedByCoin(String coinName,
CryptoControlApi.OnResponseHandler<List<Feed>> callback) |
Get a single feed (articles/tweets/reddit) for a specific coin from the CryptoControl API.
|
void |
getLatestItemsByCoin(Language lang,
String coinName,
CryptoControlApi.OnResponseHandler<CombinedFeedResponse> callback) |
Get articles/tweets/reddit for a specific coin from the CryptoControl API.
|
void |
getLatestItemsByCoin(String coinName,
CryptoControlApi.OnResponseHandler<CombinedFeedResponse> callback) |
Get articles/tweets/reddit for a specific coin from the CryptoControl API.
|
void |
getLatestNews(CryptoControlApi.OnResponseHandler<List<Article>> callback) |
Get the latest news articles from the CryptoControl News API.
|
void |
getLatestNews(Language lang,
CryptoControlApi.OnResponseHandler<List<Article>> callback) |
Get the latest news articles from the CryptoControl News API.
|
void |
getLatestNewsByCategory(CryptoControlApi.OnResponseHandler<CategoryResponse> callback) |
Get latest news articles grouped by category from the CryptoControl News API.
|
void |
getLatestNewsByCategory(Language lang,
CryptoControlApi.OnResponseHandler<CategoryResponse> callback) |
Get latest news articles grouped by category from the CryptoControl News API.
|
void |
getLatestNewsByCoin(Language lang,
String coinName,
CryptoControlApi.OnResponseHandler<List<Article>> callback) |
Get the latest news articles for a specific coin from the CryptoControl News API.
|
void |
getLatestNewsByCoin(String coinName,
CryptoControlApi.OnResponseHandler<List<Article>> callback) |
Get the latest news articles for a specific coin from the CryptoControl News API.
|
void |
getLatestRedditPostsByCoin(Language lang,
String coinName,
CryptoControlApi.OnResponseHandler<List<RedditPost>> callback) |
Get the latest reddit posts for a specific coin from the CryptoControl API.
|
void |
getLatestRedditPostsByCoin(String coinName,
CryptoControlApi.OnResponseHandler<List<RedditPost>> callback) |
Get the latest reddit posts for a specific coin from the CryptoControl API.
|
void |
getLatestTweetsByCoin(Language lang,
String coinName,
CryptoControlApi.OnResponseHandler<List<Tweet>> callback) |
Get the top tweets for a specific coin from the CryptoControl API.
|
void |
getLatestTweetsByCoin(String coinName,
CryptoControlApi.OnResponseHandler<List<Tweet>> callback) |
Get the top tweets for a specific coin from the CryptoControl API.
|
void |
getTopFeedByCoin(Language lang,
String coinName,
CryptoControlApi.OnResponseHandler<List<Feed>> callback) |
Get a single feed (articles/tweets/reddit) in english for a specific coin from the CryptoControl API.
|
void |
getTopFeedByCoin(String coinName,
CryptoControlApi.OnResponseHandler<List<Feed>> callback) |
Get a single feed (articles/tweets/reddit) in english for a specific coin from the CryptoControl API.
|
void |
getTopItemsByCoin(Language lang,
String coinName,
CryptoControlApi.OnResponseHandler<CombinedFeedResponse> callback) |
Get articles/tweets/reddit for a specific coin from the CryptoControl API.
|
void |
getTopItemsByCoin(String coinName,
CryptoControlApi.OnResponseHandler<CombinedFeedResponse> callback) |
Get articles/tweets/reddit for a specific coin from the CryptoControl API.
|
void |
getTopNews(CryptoControlApi.OnResponseHandler<List<Article>> callback) |
Get the top news articles from the CryptoControl News API.
|
void |
getTopNews(Language lang,
CryptoControlApi.OnResponseHandler<List<Article>> callback) |
Get the top news articles from the CryptoControl News API.
|
void |
getTopNewsByCategory(CryptoControlApi.OnResponseHandler<CategoryResponse> callback) |
Get news articles grouped by category from the CryptoControl News API.
|
void |
getTopNewsByCategory(Language lang,
CryptoControlApi.OnResponseHandler<CategoryResponse> callback) |
Get news articles grouped by category from the CryptoControl News API.
|
void |
getTopNewsByCoin(Language lang,
String coinName,
CryptoControlApi.OnResponseHandler<List<Article>> callback) |
Get the top news articles for a specific coin from the CryptoControl API.
|
void |
getTopNewsByCoin(String coinName,
CryptoControlApi.OnResponseHandler<List<Article>> callback) |
Get the top news articles for a specific coin from the CryptoControl API.
|
void |
getTopNewsByCoinCategory(Language lang,
String coinName,
CryptoControlApi.OnResponseHandler<CategoryResponse> callback) |
Get news articles grouped by category for a specific coin from the CryptoControl News API.
|
void |
getTopNewsByCoinCategory(String coinName,
CryptoControlApi.OnResponseHandler<CategoryResponse> callback) |
Get news articles grouped by category for a specific coin from the CryptoControl News API.
|
void |
getTopRedditPostsByCoin(Language lang,
String coinName,
CryptoControlApi.OnResponseHandler<List<RedditPost>> callback) |
Get the top reddit posts for a specific coin from the CryptoControl API.
|
void |
getTopRedditPostsByCoin(String coinName,
CryptoControlApi.OnResponseHandler<List<RedditPost>> callback) |
Get the top reddit posts for a specific coin from the CryptoControl API.
|
void |
getTopTweetsByCoin(Language lang,
String coinName,
CryptoControlApi.OnResponseHandler<List<Tweet>> callback) |
Get the latest tweets for a specific coin from the CryptoControl API.
|
void |
getTopTweetsByCoin(String coinName,
CryptoControlApi.OnResponseHandler<List<Tweet>> callback) |
Get the latest tweets for a specific coin from the CryptoControl API.
|
public CryptoControlApi(String apiKey)
apiKey - The CryptoControl.io API keypublic void enableSentiment()
public void getTopNews(CryptoControlApi.OnResponseHandler<List<Article>> callback)
callback - A callback fn returning a list of articlespublic void getTopNews(Language lang, CryptoControlApi.OnResponseHandler<List<Article>> callback)
lang - The language to choose fromcallback - A callback fn returning a list of articlespublic void getLatestNews(CryptoControlApi.OnResponseHandler<List<Article>> callback)
callback - A callback fn returning a list of articlespublic void getLatestNews(Language lang, CryptoControlApi.OnResponseHandler<List<Article>> callback)
lang - The language to choose fromcallback - A callback fn returning a list of articlespublic void getTopNewsByCategory(CryptoControlApi.OnResponseHandler<CategoryResponse> callback)
callback - A callback fn returning the response from the CryptoControl API.public void getTopNewsByCategory(Language lang, CryptoControlApi.OnResponseHandler<CategoryResponse> callback)
lang - The language to choose fromcallback - A callback fn returning the response from the CryptoControl API.public void getLatestNewsByCategory(CryptoControlApi.OnResponseHandler<CategoryResponse> callback)
callback - A callback fn returning the response from the CryptoControl API.public void getLatestNewsByCategory(Language lang, CryptoControlApi.OnResponseHandler<CategoryResponse> callback)
lang - The language to choose fromcallback - A callback fn returning the response from the CryptoControl API.public void getTopNewsByCoin(String coinName, CryptoControlApi.OnResponseHandler<List<Article>> callback)
coinName - The coin name to get news for.callback - A callback fn returning the response from the CryptoControl API.public void getTopNewsByCoin(Language lang, String coinName, CryptoControlApi.OnResponseHandler<List<Article>> callback)
coinName - The coin name to get news for.lang - The language to choose fromcallback - A callback fn returning the response from the CryptoControl API.public void getLatestNewsByCoin(String coinName, CryptoControlApi.OnResponseHandler<List<Article>> callback)
coinName - The coin name to get news for.callback - A callback fn returning the response from the CryptoControl API.public void getLatestNewsByCoin(Language lang, String coinName, CryptoControlApi.OnResponseHandler<List<Article>> callback)
lang - The language to choose fromcoinName - The coin name to get news for.callback - A callback fn returning the response from the CryptoControl API.public void getTopNewsByCoinCategory(String coinName, CryptoControlApi.OnResponseHandler<CategoryResponse> callback)
coinName - The coin name to get news for.callback - A callback fn returning the response from the CryptoControl API.public void getTopNewsByCoinCategory(Language lang, String coinName, CryptoControlApi.OnResponseHandler<CategoryResponse> callback)
lang - The language to choose fromcoinName - The coin name to get news for.callback - A callback fn returning the response from the CryptoControl API.public void getTopRedditPostsByCoin(String coinName, CryptoControlApi.OnResponseHandler<List<RedditPost>> callback)
coinName - The coin name to get reddit items for.callback - A callback fn returning the response from the CryptoControl API.public void getTopRedditPostsByCoin(Language lang, String coinName, CryptoControlApi.OnResponseHandler<List<RedditPost>> callback)
lang - The language to choose fromcoinName - The coin name to get reddit items for.callback - A callback fn returning the response from the CryptoControl API.public void getLatestRedditPostsByCoin(String coinName, CryptoControlApi.OnResponseHandler<List<RedditPost>> callback)
coinName - The coin name to get reddit items for.callback - A callback fn returning the response from the CryptoControl API.public void getLatestRedditPostsByCoin(Language lang, String coinName, CryptoControlApi.OnResponseHandler<List<RedditPost>> callback)
lang - The language to choose fromcoinName - The coin name to get reddit items for.callback - A callback fn returning the response from the CryptoControl API.public void getTopTweetsByCoin(String coinName, CryptoControlApi.OnResponseHandler<List<Tweet>> callback)
coinName - The coin name to get reddit items for.callback - A callback fn returning the response from the CryptoControl API.public void getTopTweetsByCoin(Language lang, String coinName, CryptoControlApi.OnResponseHandler<List<Tweet>> callback)
lang - The language to choose fromcoinName - The coin name to get reddit items for.callback - A callback fn returning the response from the CryptoControl API.public void getLatestTweetsByCoin(String coinName, CryptoControlApi.OnResponseHandler<List<Tweet>> callback)
coinName - The coin name to get tweets for.callback - A callback fn returning the response from the CryptoControl API.public void getLatestTweetsByCoin(Language lang, String coinName, CryptoControlApi.OnResponseHandler<List<Tweet>> callback)
lang - The language to choose fromcoinName - The coin name to get tweets for.callback - A callback fn returning the response from the CryptoControl API.public void getTopFeedByCoin(String coinName, CryptoControlApi.OnResponseHandler<List<Feed>> callback)
coinName - The coin name to get the feed items for.callback - A callback fn returning the response from the CryptoControl API.public void getTopFeedByCoin(Language lang, String coinName, CryptoControlApi.OnResponseHandler<List<Feed>> callback)
lang - The language of the feedcoinName - The coin name to get the feed items for.callback - A callback fn returning the response from the CryptoControl API.public void getLatestFeedByCoin(String coinName, CryptoControlApi.OnResponseHandler<List<Feed>> callback)
coinName - The coin name to get the feed for.callback - A callback fn returning the response from the CryptoControl API.public void getLatestFeedByCoin(Language lang, String coinName, CryptoControlApi.OnResponseHandler<List<Feed>> callback)
lang - The language to choose fromcoinName - The coin name to get the feed for.callback - A callback fn returning the response from the CryptoControl API.public void getTopItemsByCoin(String coinName, CryptoControlApi.OnResponseHandler<CombinedFeedResponse> callback)
coinName - The coin name to get the feed items for.callback - A callback fn returning the response from the CryptoControl API.public void getTopItemsByCoin(Language lang, String coinName, CryptoControlApi.OnResponseHandler<CombinedFeedResponse> callback)
lang - The language to choose fromcoinName - The coin name to get the feed items for.callback - A callback fn returning the response from the CryptoControl API.public void getLatestItemsByCoin(String coinName, CryptoControlApi.OnResponseHandler<CombinedFeedResponse> callback)
coinName - The coin name to get the feed for.callback - A callback fn returning the response from the CryptoControl API.public void getLatestItemsByCoin(Language lang, String coinName, CryptoControlApi.OnResponseHandler<CombinedFeedResponse> callback)
lang - The language to choose fromcoinName - The coin name to get the feed for.callback - A callback fn returning the response from the CryptoControl API.public void getCoinDetails(String coinName, CryptoControlApi.OnResponseHandler<CoinDetail> callback)
coinName - The coin name to get the feed for.callback - A callback fn returning the response from the CryptoControl API.Copyright © 2019. All rights reserved.