Also, you don’t need to create File Api.php > connect database > fetch members;
Please refer to our code which we have written.
I understand that you have updated the API code I just want to understand how will I be able to sort the users according to their current marks/points.
Earlier I was able to get the data the problem was the sorting, but thank you for improving the code, I only need the sorting part done now and everything else is set.
Can you tell me which are the actual points for the particular user then we will sort it?
If possible share a screenshot or something else.
The issue we get only: We are unable to determine which is the actual point for user.
you just need to pass batch_id and get students sorted by my_cred_balance.
Thank you so much for the help Scott.
Yes you can do anything .
You can fetch details for all bach_members or fetch only single user data.
just you have to use specific part of your code .
In your API: We first fetch batch members then for fetch data for single members .
Just you have to manipulate with the code in php or reuse some part.
Please read the API function.
We have created different API for batch_id and user_id,
In-App src/services/group.ts file you will get each API hit for the batch page like this
Please read the code which use to make API hit in angular js.
Also, you can see inspect>network for batch/group API hit
The topic ‘Leaderboard according batches’ is closed to new replies.