Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I get the latest post of a certain user #256

Open
eastmaels opened this issue Oct 10, 2017 · 4 comments
Open

How do I get the latest post of a certain user #256

eastmaels opened this issue Oct 10, 2017 · 4 comments

Comments

@eastmaels
Copy link

Expected behavior

I'm just starting to use steem-js, but basically what I want to happen is get the posts of a certain user and then eventually filter that to my latest post and then get the users who have voted for that post.

Actual behavior

How to reproduce

Environment information

@bonustrack
Copy link
Contributor

You can use steem.api.getDiscussionByBlog for get latest post from an user see example here: https://jsfiddle.net/bonustrack/b1fxacj9/3/

@eastmaels
Copy link
Author

eastmaels commented Oct 16, 2017

Thanks for this. What are the values that can be passed in the 'query' parameter?

I mean from this, besides tag and limit, what others are possible? and where can I get more examples for it?

var query = {
	tag: 'sweetsssj',
  limit: 10
};

@arjunkapur95
Copy link

arjunkapur95 commented Feb 24, 2018

You could also use the function getBlogEntries(account,entryid,limit,callback)
steem.api.getBlogEntries("ajkapss", 9999, 1, function(err, data){ console.log(err, data); });

https://jsfiddle.net/hbknmpb7/15/

@potadibyo
Copy link

@bonustrack is it possible that tag can be a category?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants