RE: Steem API Basics - Part 1: Parsing Post Payloads with Ruby

You are viewing a single comment's thread from:

Steem API Basics - Part 1: Parsing Post Payloads with Ruby

in steem •  7 years ago 

This is really great. You actually broke it down. But i still don't fully understand what perm link is.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

One other cool trick... you can find the author/permlink for any comment in Steemit by inspecting the HTML for that comment in your browser. In Chrome, right click the comment, then click Inspect. You should be near a piece of HTML that has an id containing the author/permlink

Permlink is what shows up in the URL when you go to a post -- it is the permanent link to that post. In this case of this post:
author: @thescubageek
permlink: steem-api-basics-part-1-parsing-post-payloads-with-ruby

All comments also have permlinks, which are generated according to the rules as I describe in the post above. Your comment, for example, has the following parameters:
author: @augustinanweke
permlink: re-thescubageek-steem-api-basics-part-1-parsing-post-payloads-with-ruby-20180301t024812479z

The cool this is that we can also use the get_post method I wrote above to get information about individual comments (and comment trees!), not just posts.

post = SteemPostFinder.new('steem').get_post('augustinanweke','re-thescubageek-steem-api-basics-part-1-parsing-post-payloads-with-ruby-20180301t024812479z')

In an upcoming post I'll go into more detail on how the post / comment hierarchy works and how we can grab this data from the API payload.

I hope this helps @augustinanweke...