Class can not be used in custom code deployment com.shephertz.app42.paas.sdk.java.App42API

0 votes
if I can't import App42API how can I use the users service inside my custom code ?
asked Jun 29, 2014 in App42 Cloud API-BaaS by moddib (27 points)

1 Answer

0 votes

Hi,

You can create ServiceAPI instance to call userService method like i have explained below:

ServiceAPI app42ServiceAPI = new ServiceAPI("APIKey","SecretKey");

UserService userService = app42ServiceAPI .buildUserService();

userService.createUser(................,.);    // Pass the input parameter and run it.

Let me know if it helps.

Thanks.

 

answered Jun 30, 2014 by hs00105 (517 points)
edited Jun 30, 2014 by hs00105
It's ok : thank you !

What about the possibility of overwriting an existing customcode ? it's boring to remove it manually in the management console.
Thanks for your suggestion.
Currently you need to undeploy first your old custom code jar from AppHQ management console and deploy it.
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
...