Custom Code Management

0 votes

How to manage(create/delete)  Games in Dashboard  with  custom code in specific time ? (please provide examples , if possible)   thanks.

asked Aug 23, 2015 in App42 Cloud API-BaaS by Gago Xachatryan (10 points)
edited Aug 23, 2015 by Gago Xachatryan

1 Answer

0 votes

Hello Gago,

You can delete it easily, you jus need to write a logic. You can delete your game, using deleteGame api which you can find a below code snippet:

ServiceAPI sp  = new ServiceAPI("API_Key", "Secret_Key");
GameService gameServuce = sp.buildGameService();
App42Response app42Response = gameServuce.deleteGame("Game_Name");
Once your game is deleted, you can successfully create it using createGame api. Since, you can easily delete and create game using api. You can schedue this task whenever you want to delete your game, you can schdule custom code using schedule functonality
P.S Delete game api is available in the latest version of Java SDK. So you need to inetgrate the latest version of Java SDK in custom code. Also make sure that if your game have large no of records to delete it from data base, so you have to wait for delete process otherwise, you will not able to create new game with same name. 
Himanshu Sharma
answered Aug 23, 2015 by hs00105 (2,005 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