You are viewing a single comment's thread from:

RE: Deep Follow - NodeJS/SteemJS

in #utopian-io7 years ago

I finally got somewhere with the the help of this:

https://github.com/steemit/steem-js/issues/256


steem.api.setOptions({ url: 'https://api.steemit.com' });

var query = {
    tag: 'blockchain',
    limit: 10
};

steem.api.getDiscussionsByTrending(query, function (err, discussions) {
  console.log(err, discussions);
});```
Sort:  

Thanks! I will try this out!

It works like a charm for me. I think it really opens up the world for some automation even on a read-only basis.

Heres some good code snippets you might find interesting: https://github.com/drov0/steemsnippets

The fact that it's documented is music to my eyes :) Looking forward to sharing some of my scripts soon!

Here are some really good examples to upvote, downvote, comment and transfer: https://steemit.com/steemjs/@fabien/steem-js-comment-upvote-downvote-transfert-you-wanted-it-you-got-it