Content
@
0 reply
0 recast
0 reaction
Pau π© βοΈβπ₯
@p4u
Hey, listenπthis week's new feature has been deployed at farcaster.vote Now you can create Farcaster gated polls π³οΈ for your Alfafrens channel subscribers!! π Follow @vocdoni to stay up to date with new developments.
2 replies
6 recasts
12 reactions
Pau π© βοΈβπ₯
@p4u
We made a mistake using the Alfafrens new API, we did not consider pagination, lol π« We are fixing it. Pools won't work properly until then. cc/ @taimonania
2 replies
0 recast
1 reaction
Pau π© βοΈβπ₯
@p4u
So @vijay there is something wrong with the API. We are using this method https://docs.alfafrens.com/docs/alfafrens-api/get-channel-subscribers-and-stakes But it returns fewer subscribers than the ones shown by the Alfafrens UI. I.e for @taimonania it returns a total of 153 subs, while the UI says 375.
1 reply
0 recast
1 reaction
Pau π© βοΈβπ₯
@p4u
We paginate with first=200&skip=0 then first=200&skip=200 then first=200&skip=400 and so on. Until "hasMore" is false. Which seems correct on our side. We take only the FID if "member.isSubscribed" is true. I hope it is the API wrong and not the Alfafrens UI showing a wrong number of subs π
1 reply
0 recast
0 reaction
Pau π© βοΈβπ₯
@p4u
I think I found the issue @vijay, there is a hardcoded limit of 1000 for the skip parameter. So if the channel has more items, they cannot be fetch... { "message": "first and skip must be less than 1000", "code": "PAYLOAD_TOO_LARGE" }
3 replies
0 recast
0 reaction