Download the PHP package cryptocontrol/crypto-news-api without Composer
On this page you can find all versions of the php package cryptocontrol/crypto-news-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cryptocontrol/crypto-news-api
More information about cryptocontrol/crypto-news-api
Files in cryptocontrol/crypto-news-api
Package crypto-news-api
Short Description Client to get a crypto newsfeed in your app from the CryptoControl API
License Apache-2.0
Informations about the package crypto-news-api
CryptoControl - PHP Crypto News API
Official PHP client for the CryptoControl.io API. The CryptoControl PHP client lets developers access rich formatted articles from cryptonews sources from all around the world.
Installation
Usage
First make sure that you've recieved an API key by visiting https://cryptocontrol.io/apis. With the API key you can write the following code.
Available Functions
- getTopNews(lang?: enum) Get the top news articles.
- getLatestNews(lang?: enum) Get the latest news articles.
- getTopNewsByCategory(lang?: enum) Get news articles grouped by category.
- getTopNewsByCoin(coin: String, lang?: enum) Get the top news articles for a specific coin from the CryptoControl API.
- getLatestNewsByCoin(coin: String, lang?: enum) Get the latest news articles for a specific coin.
- getTopNewsByCoinCategory(coin: String, lang?: enum) Get news articles grouped by category for a specific coin.
- getTopRedditPostsByCoin(coin: String, lang?: enum) Get top reddit posts for a particular coin
- getLatestRedditPostsByCoin(coin: String, lang?: enum) Get latest reddit posts for a particular coin
- getTopTweetsByCoin(coin: String, lang?: enum) Get top tweets for a particular coin
- getLatestTweetsByCoin(coin: String, lang?: enum) Get latest tweets for a particular coin
- getTopFeedByCoin(coin: String, lang?: enum) Get a combined feed (reddit/tweets/articles) for a particular coin (sorted by time)
- getLatestFeedByCoin(coin: String, lang?: enum) Get a combined feed (reddit/tweets/articles) for a particular coin (sorted by relevance)
- getTopItemsByCoin(coin: String, lang?: enum) Get reddit/tweets/articles (seperated) for a particular coin (sorted by time)
- getLatestItemsByCoin(coin: String, lang?: enum) Get reddit/tweets/articles (seperated) for a particular coin (sorted by relevance)
- getCoinDetails(coin: String) Get all details about a particular coin (links, description, subreddits, twitter etc..)
- enableSentiment() Get the sentiment datapoints
lang
allows developers to choose which language they'd like to get the feed. Currently the CryptoControl API supports the following languages:
- English (
en
default) - Chinese/Mandarin (
cn
) - German (
de
) - Italian (
it
) - Japanese (
jp
) - Korean (
ko
) - Portuguese (
po
) - Russian (
ru
) - Spanish (
es
)
The coin slugs are the coin id's used from the CoinMarketCap api. You can see the full list of coins here: https://api.coinmarketcap.com/v1/ticker/?limit=2000
enableSentiment()
will tell CrpytoControl to return articles/reddit/twitter with sentiment datapoints as well (ie. how much +ve/-ve an article is). This feature is for CryptoControl premium users only.