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 call only returns 10 results #6
Comments
Can you show me your code? I would like to reproduce the issue. Thank you. |
Sure thing :) I'm not sure if you want the full code but here is the relevant code. I should point out I am using the steem rest api link atm. When calling the load method, the api is called however the same data as before is returned a second time.
Function where I am calling the Http request
|
Yeah, I only get 20 results on a getState for "created" as the path: getState?path=/created How do we get the next 20? |
If you want to load feed content getDiscussionBy.. endpoints are more reliable.
or in Promise form:
Which in query you can pass an object with these parameters:
By omitting |
Holy crap! Thank you! Is this anywhere in the master doc, int he examples, anywhere? I don't think I would have figured it out without you. Can you tell how you knew to do this? I'm really looking for where this is setup in the actual code. I'm trying to go through the github files and find where these methods exist. Downloading all the file, then searching, for example, the method 'getState', I can't find it declared as a function in any file. I wanted to see what the methods are, what they are coded, and what the possible parameters are and then I could see how to call and pass vars to them. Any help you can offer to get me to be able to find these methods and see how to manipulate them myself, would be greatly appreciated. Thanks for the help so far. Peace. |
@KrNel Your welcome. These codes are not all included in this package. These are originated from the main steem API. There is a not very known doc here which might be helpful. However, right now I mostly figure out these things by monitoring web socket connections in steemit.com. Also this file contains the functions we are supporting in this package. A generator function is creating methods from that file so if you're looking for |
Thanks @p0o I knew about that last method file, but didn't know how to add the limit. I was previously using the https api, and even tried a URL call: |
Does the { Are there other params for query? I'm looking to only get certain fields, like author or title for instance (save bandwidth if possible...). The page you linked to for the steem api only says:
But you also provided two other params. So what are the params? Hopefully you can let me know of any others. Thanks. |
@KrNel AFAIK there are not any other params for this context. |
Ah well, thanks for the help. Peace. |
When calling the API via http only 10 post objects are returned. Sequential calls to the api via http also return the same results from the previous call
The text was updated successfully, but these errors were encountered: