Tutorial about Interactive Steem API

in #utopian-io7 years ago

If you have started working on Steem Blockchain, it is very hard for you to find out what exactly the functions do. There are a number of functions and then you have to send query for each functions, thus without knowing about them you end up spending a lot of your time by doing trial and error.

Today I will write a tutorial about Interactive Steem API which will help you to interact with the Steem Blockchain, make a request and get output then and there. Thus you do not have to write it on your .js file to know what exactly a function does.

image.png
PC : http://steem.esteem.ws/

As you can see above, the functions are differentiated on different categories. Lets take an example of Post Category, where there are number of functions like /get_discussions_by_hot, /get_discussions_by_feed, /get_discussions_by_trending, etc...

image.png
PC : http://steem.esteem.ws/#/Post

We are going to check for /get_discussions_by_trending where it is written that the "query example {"limit":"10", "tag":"steem"} OR {"start_author":"author", "permlink":"permlink"} for pagination". Now we will now using it what exactly is the query means.

Now the next thing is to click on "Try It Out", once done you can see that a response body is created which has all the details of the Trending post as of now.

image.png

I feel, this tutorial is helpful to get you started with the awesome apps which you can create using the Steem BlockChain. There are number of functions which you can use to create an awesome looking website.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

nice tutorial ...have a nice day...

good share about this tutorial

greetings from @kupi

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @codingdefined I am @utopian-io. I have just upvoted you at 7% Power!

Achievements

  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!
  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • I introduced a competition factor. My vote is based also on how competitive the category used is.

Human Curation

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Is there a function that lets you upvote a post or comment?

Yes there are , check here https://github.com/steemit/steem-js/tree/master/doc#broadcast-api
steem.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) { console.log(err, result); });

Coin Marketplace

STEEM 0.16
TRX 0.16
JST 0.031
BTC 58951.49
ETH 2505.59
USDT 1.00
SBD 2.48