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

(API Question) get users post history #273

Closed
ByronAP opened this issue Aug 15, 2016 · 3 comments
Closed

(API Question) get users post history #273

ByronAP opened this issue Aug 15, 2016 · 3 comments

Comments

@ByronAP
Copy link

ByronAP commented Aug 15, 2016

what is the best way to get a users post history from the api?

@theoreticalbts
Copy link
Contributor

get_account_history, then filter by posts.

@ByronAP
Copy link
Author

ByronAP commented Aug 18, 2016

thank you, could you explain what the "from" field actually is? It doesn't seem to relate to block numbers or anything that I can see

@abitmore
Copy link
Contributor

abitmore commented Aug 18, 2016

@ByronAP:

locked >>> gethelp get_account_history
gethelp get_account_history

Account operations have sequence numbers from 0 to N where N is the most
recent operation. This method returns operations in the range [from-limit,
from]

Parameters:
    account: - account whose history will be returned (type: string)
    from: - the absolute sequence number, -1 means most recent, limit is
        the number of operations before from. (type: uint32_t)
    limit: - the maximum number of items that can be queried (0 to 1000],
        must be less than from (type: uint32_t)

For example,

  • get_account_history your_account -1 10 will return the latest 10 records,
  • get_account_history your_account 100 10 will return the No.91 - No.100 records.

gethelp command in CLI is your friend, you need to build with doxygen installed (apt-get install doxygen)

mvandeberg pushed a commit that referenced this issue Dec 9, 2016
mvandeberg pushed a commit that referenced this issue Dec 16, 2016
mvandeberg pushed a commit that referenced this issue Jan 5, 2017
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

3 participants