What does getAllRewardsByUser do?

0 votes

Hi,

I have a related question. I'm trying to fetch all rewards earned by a specific player, and it looks like the getallRewardsByUser should do that. But so far, I only fetch data on the reward of which I pass the name.

You state in your answer the following:

"You have to first fetch all Reward then can call getAllRewardsByUser method."

What do you mean by this? Do I have to fetch all Reward names, and then pass them on, 1 by 1 to the getAllRewardsByUser method?

Thanks

related to an answer for: Get All Rewards By User
asked Jul 30, 2014 in App42 Cloud API-BaaS by breinthee (10 points)

1 Answer

0 votes

Hi Brinthee,

Yes, you are right, you need to fetch all the reward names and pass those reward names one by one in getAllRewardsByUser method to find out the reward details.

If you have specific requirement about fetching all the rewards for a particular user without passing the reward name then You can also write an aggregated method using custom code to perform those operation in Single API Call. Please find the link for details description of how you can use custom code in your app.

Let us know if you have more question for us.

Thanks

answered Jul 31, 2014 by hs00105 (517 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...