How to delete or recreate a leaderboard game programmatically.

0 votes
I want to refresh the leaderboard monthly, I am thinking to delete or recreate the game.

Can I achieve this progammatically? Is there better approach?

Thanks.
asked Feb 17, 2015 in App42 Cloud API-BaaS by tianyi (15 points)

2 Answers

0 votes
I also need to refresh by week.

I try call Get Top Ranker By Date.

It works right. But, today, it not works.
answered Feb 18, 2015 by igteam2014 (10 points)
Could you please let us know, are you getting any exception while fetching the records from leaderboard. It will help us to provide better support to you.
Thanks,
Himanshu Sharma
I did email for support. I 'm waiting for result from your service.
Thanks for sharing the details & reporting a bug. We have resolved it from our side and the patch is available.

Kindly check & let us know if it helps.
Himanshu Sharma
0 votes

Hello Tianyi,

You can use get top n ranker by date method to find the leaderboard to achieve your objective.  Please have at this link for the code snippet and let me know if it helps.

Thanks,

Himanshu Sharma

 

answered Feb 18, 2015 by hs00105 (2,005 points)
I have already use getUserSocialGroup, so I cannot use Get Top N Rankers By Date. Is there another way to achieve this? If not, can I delete/recreate game programmatically?
Hi hs00105, still looking forward to hear back from you. Please let me know whether it is achievable. Thanks!
Hello Tianyi,

Delete game is not available through API however if you have a scenario than we can plan & add this api as well. Please confirm so that we can plan it for next month release.

Thanks,
Himanshu Sharma
Hi Himanshu,

That would be great if delete game could be added into API. It would save us a lot of time and effort to achieve what we want to achieve. Thanks in advance!
Hello Tianyi,

Thanks for your update. We add this in our march release and it will be live in the third week of march, will update this thread for the same.

Thanks for your patience.
Himanshu Sharma
Hey Himanshu,

Any update on your march release, when will it happen and will delete game function included?

Thanks,
Tianyi
Hello Tianyi,

Could you please let me know in which SDK you are working on?
Thanks,
Himanshu Sharma
App42_JAVA_SDK_2.5.1
In the previous talk, you mentioned in the march release, delete game function will be added.
Hello Tianyi,

It will be live by tomorrow end of the day. Thanks for your patience.

Himanshu Sharma
Great, thanks!
Hello Tianyi,

Kindly find the latest release from the below link which contain the delete game method. Please check and let us know if it helps.
https://github.com/shephertz/App42_JAVA_SDK

Thanks,
Himanshu Sharma
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
...