-
Notifications
You must be signed in to change notification settings - Fork 31
Available Methods
TOC
- Follow API
The node needs to enable those plugins
The follow_api covers all api calls related to blogs, feeds, and followes.
TOC
- getFollowers
- getFollowing
- getFollowCount
- getFeedEntries
- getFeed
- getBlogEntries
- getBlog
- getAccountReputations
- getRebloggedBy
- getBlogAuthors
Use this method to find out if an account is following another one or get a list of all followers of an account.
Use this method to get the blog entries of the given author based on the given coniditions.
Each blog entry of an author (resteemed or posted on his/her own) has an entryId, while the entryId starts with 0 for the first blog entry and is increment by 1 for each resteem or post of the author.
Steem allows to use the entryId as a search criteria: The first entry of the returned list is the blog entry with the given entryId. Beside that, the limit can be used to limit the number of results.
List<BlogEntry> blogEntries = steemApiWrapper.getBlogEntries(new AccountName("dez1337"), 5, (short) 2);So if the method is called with entryId set to 5 and the limit is set to 2, the returned list will contain 2 entries: The first one is the blog entry with entryId of 5, the second one has the entryId 4.
If the entryId is set to 0, the first returned item will be the latest blog entry of the given author.
List<BlogEntry> blogEntries = steemApiWrapper.getBlogEntries(new AccountName("dez1337"), 0, (short) 2);So if a user has 50 blog entries and this method is called with an entryId set to 0 and a limit of 2, the returned list will contain the blog entries with the entryIds 50 and 49.
This method is like the getBlogEntries</> method, but instead of the author and the permlink, it contains the whole content of the post.
List<CommentBlogEntry> blog = steemApiWrapper.getBlog(new AccountName("dez1337"), 0, (short) 10);The sample above returns the last 10 blog entries of dez1337 blog.
This next method can be used to get the reputation for one or more accounts.
The method requires an account name pattern and the number of results Steem should return.
List<AccountReputation> accountReputations = steemApiWrapper
.getAccountReputations(new AccountName("dez1337"), 0);The method returns an account name that matches the most with the given account name pattern and the reputation of this account. The sample above would return the reputation from dez1337, because this account has a 100% match with the given account name pattern "dez1337".
List<AccountReputation> accountReputations = steemApiWrapper
.getAccountReputations(new AccountName("dez1337"), 1);This sample would return the reputation for dez1337, but also add a second account dez243 to the result, because dez243 is the account that has the second most accordance with the given account name pattern.
Use this method to find out, which user have resteemed a specific post.
The method requires the author of the post and its permanent link, so a method call could look like this:
List<AccountName> accountNames = steemApiWrapper.getRebloggedBy(new AccountName("dez1337"),
"steemj-v0-2-6-has-been-released-update-11");The result of this call is a list of account names which have resteemed the given post.
Use this method to find out, how many blog entries of which authors have been published by an account.
The method only requires an account name of the blog owner to analzse, so a method call could look like this.
List<PostsPerAuthorPair> blogAuthors = steemApiWrapper.getBlogAuthors(new AccountName("dez1337"));And would return a list of pairs, while earch pair consists of an author name and the number of blog entries that dez1337 has resteemed from this author.
ausbitbank: 1
good-karma: 3
...
In this case two pairs have been returned, providing the information that dez1337 has currently resteemed one post from ausbitsbank in his blog history, and three posts from good-karma.
This project is developed by dez1337