crypto-news-api
Advanced tools
Comparing version 1.0.17 to 1.0.18
{ | ||
"name": "crypto-news-api", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "API to get a crypto newsfeed in your app", | ||
@@ -5,0 +5,0 @@ "main": "dist/node/index.node.js", |
@@ -35,2 +35,17 @@ CryptoControl Crypto News API | ||
.catch(error => console.error(error)) | ||
Api.getTopNewsByCoin("bitcoin") | ||
.then(articles => console.log(articles)) | ||
.catch(error => console.error(error)) | ||
Api.getLatestTweetsByCoin("bitcoin") | ||
.then(tweets => console.log(tweets)) | ||
.catch(error => console.error(error)) | ||
Api.getLatestRedditPostsByCoin("bitcoin") | ||
.then(redditPosts => console.log(redditPosts)) | ||
.catch(error => console.error(error)) | ||
``` | ||
@@ -47,2 +62,17 @@ | ||
.catch(function (error) { console.log(error) }) | ||
Api.getTopNewsByCoin("bitcoin") | ||
.then(function (articles) { console.log(articles) }) | ||
.catch(function (error) { console.log(error) }) | ||
Api.getLatestTweetsByCoin("bitcoin") | ||
.then(function (tweets) { console.log(tweets) }) | ||
.catch(function (error) { console.log(error) }) | ||
Api.getLatestRedditPostsByCoin("bitcoin") | ||
.then(function (redditPosts) { console.log(redditPosts) }) | ||
.catch(function (error) { console.log(error) }) | ||
``` | ||
@@ -57,4 +87,19 @@ | ||
Api.getTopNews() | ||
.then(articles => console.log(articles)) | ||
.catch(error => console.error(error)) | ||
.then(function (articles) { console.log(articles) }) | ||
.catch(function (error) { console.log(error) }) | ||
Api.getTopNewsByCoin("bitcoin") | ||
.then(function (articles) { console.log(articles) }) | ||
.catch(function (error) { console.log(error) }) | ||
Api.getLatestTweetsByCoin("bitcoin") | ||
.then(function (tweets) { console.log(tweets) }) | ||
.catch(function (error) { console.log(error) }) | ||
Api.getLatestRedditPostsByCoin("bitcoin") | ||
.then(function (redditPosts) { console.log(redditPosts) }) | ||
.catch(function (error) { console.log(error) }) | ||
</script> | ||
@@ -61,0 +106,0 @@ ``` |
5294217
153