You are viewing a single comment's thread from:

RE: TUTORIAL - Reblog Contest - Building With Steem-js #10

in #utopian-io7 years ago (edited)

The actual steem-js api has got the getRebloggedBy() . I corrected this on my comment to @money-dreamer after he gave us that nice little brain teaser, which maybe should not have been so much of a tease if I just RTFM but they make it difficult to find the right manual since this is hosted by steemconnect

https://v2.steemconnect.com/docs/steemjs
https://v2.steemconnect.com/docs/steemjs#api/get_reblogged_by

can include using the cdn link
https://cdn.steemjs.com/lib/latest/steem.min.js
and it will work with the nice little default code as in examples

function reblogged(){
    steem.api.getRebloggedBy("sambillingham","tutorial-reblog-contest-building-with-steem-js-10", function(err, result) {
        console.log(err, result);
      });
}
reblogged();
Sort:  

Nice work! You're right it's a little difficult to know where to look for the correct information. I had not seen the Steemconnect hosted docs before. I was sure I searched the Github repo for 'reblogged' but perhaps not as I just went back and easily found it in the methods.js file although it easy to get thrown off as the method names are not in camel case.

Thanks for posting this, as interesting as the tutorial is getRebloggedBy() is the way to go!