You are viewing a single comment's thread from:

RE: Introducing SteemComments.js - Add Steem Comments To Any Website or Blog

in #utopian-io7 years ago (edited)

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?

Sort:  

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 the depth property and then re-order everything by using the parent_permlink or parent_id into a thread based structure.

Thanks for taking a look at the project dude 👊

Coin Marketplace

STEEM 0.28
TRX 0.26
JST 0.039
BTC 93746.24
ETH 3345.99
USDT 1.00
SBD 1.78