You are viewing a single comment's thread from:

RE: Building Custom Calls for Hive - An Example

in #dev2 months ago

i run into same problems, 2 years ago

Date is not used! Here you find this information:
https://developers.hive.io/tutorials-recipes/paginated-api-methods.html#tags_apiget_discussions_by_author_before_date

Note: The before_date param is completely ignored. This method is similar to get_discussions_by_blog but does not serve reblogs.

Sort:  

You wrote this, 2 years ago:

You can also enter a permalink as second parameter and you will see that you get other permalinks.

Do you understand pagination?

Yes. You have to add last permlink you get in results, to get the next 10.

I was too lazy to type, asked chatGPT, but then he set permlink as 3rd parameter instead of 2nd. But I noticed it and here is the correct code:

https://jsfiddle.net/hive_coding/5wfojx4u/

So you can only ever get to the next 10 (or however many you call up).
Something like (1 2 3 4 5 .... 10 ): jump to the 5th page, is not possible, unless you already make all calls and always remember the permlink.

Thats why i would prefere HiveSQL for Calls getting informations link this.

'Yes' would have been enough.

!LOL

I found nasty month-old leftover mac and cheese in the fridge.
It was a case of age-related macaroni degeneration.

Credit: reddit
@felixxx, I sent you an $LOLZ on behalf of mein-senf-dazu

(3/8)
Farm LOLZ tokens when you Delegate Hive or Hive Tokens.
Click to delegate: 10 - 20 - 50 - 100 HP