userbradley / BeReal

How does BeReal work (Under the hood)
https://breadnet.co.uk/how-be-real-works/
MIT License
155 stars 6 forks source link

How to use the "next" field #19

Closed KikoTs closed 1 year ago

KikoTs commented 1 year ago

In example I request https://mobile.bereal.com/api/relationships/friends and i get a JSON containing 3 main fields { "next": "QQAspebQYVc538hQtJbHgG73iTJ3", "total": 0, "data": [...] }

How do I use the next field to get more results about my friends as it's not showing the full array?

KikoTs commented 1 year ago

Okay did some tries and errors and found out that the request should be like this https://mobile.bereal.com/api/relationships/friends?page=QQAspebQYVc538hQtJbHgG73iTJ3

wierd they used ?page instead of ?next Anyways you might want to include this into the docs

Lukas1h commented 1 year ago

Good find!

KikoTs commented 1 year ago

I will close the issue, thanks for noticing it🙌