You are viewing a single comment's thread from:
RE: Introducing SteemComments.js - Add Steem Comments To Any Website or Blog
Looks like a lot of effort went into this, amazing stuff! Where would I start if I wanted to learn how to create a project like this?
Hey Amos, It was substantially more work than I expected it would be.
Best place to start is with the
getState()
API call (note it takes a full path'photofeed/sambillingham/20180120t093601718z-post'
where as many other calls just take the permlink).Get state gives you all the replies to a post at any given level as appose to
getDiscussionsByCreated()
which only gives the first level of replies. With get State you can check thedepth
property and then re-order everything by using theparent_permlink
orparent_id
into a thread based structure.Thanks for taking a look at the project dude 👊