Steemsnippets v1.2 : Posting, commenting and voting using dsteem
This is the third update for steemsnippets an open source collection of code snippets on steem-related libraries. You can find more info in it here.
This time I focused on @almost-digital 's library Dsteem
This article will look a lot like the last one because it's basically the same functionalities but using a different lib. So pretty much everything is
Work done :
Added snippets :
Post (dsteem)
https://github.com/drov0/steemsnippets/blob/master/dsteem/post/post.js
Function header :
function post(username, password, main_tag, title, body, jsonMetadata, permlink)
Note that jsonMetadata and permlink are optional and that you can easily change this function to use a posting key instead of a password.
Comment (dsteem)
https://github.com/drov0/steemsnippets/blob/master/dsteem/comment/comment.js
function header :
function comment(username, password, author, permlink, text, jsonMetadata)
Note that jsonMetadata is optional and that you can easily change this function to use a posting key instead of a password.
Vote (dsteem)
https://github.com/drov0/steemsnippets/blob/master/dsteem/vote/vote.js
function header :
function vote(username, password, author, permlink, weight)
you also can easily change this function to use a posting key instead of a password.
I chose to use a password instead of a key all the time to it's easier for new programmers to use it but in a production environment you should always use the authentification with the smallest permission needed.
Now that I've covered a few basic function for steemjs, I will probably cover these same functions on other libs and then move onto some new functionalities.
commits :
github repos : https://github.com/drov0/steemsnippets
Proof of work can be found in the readme.
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Good job dude, I'm working on my first steem-js project right now 👊
Thanks ! Glad you like it, what are you making ?
Quick project to start interacting with steem user data, it pulls in multiple user profiles to compare them on different stats.
Got the first version online now 🙌
Cool! What's the url?
just hosted on github pages for now (https://code-with-sam.github.io/steem-compare/index.html#) will probably a domain up once I've added a few more features. Also posted on Utopian. 🙌
Good job
I like this post
Hey @howo I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
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