While using App42 service's curd operation's in javaScript not working properly and didn't get _App42_SessionId also ?

0 votes

I imported App42 3.1 js file, Then i have passed apiKey and securityKey After i initailized App42 and create recept Object's

 

App42.initialize(APIkey,SecurityKey)

var userService  = new App42User();

userService.authenticate(userName,pwd,{})

 

var storageService  = new App42Storage();

storageService.insertJSONDocument(dbName,collectionName,json,{})

storageService.updateDocumentByDocId(dbName,collectionName,value,json,{})

storageService.deleteDocumentById(dbName,collectionName,value,{}) 

i got above methods status canceled

asked Jan 5 in Android by aadhi.ks1987 (10 points)

1 Answer

0 votes
Hi,

Apologies for the delayed response.

We have for your query to our development team and will update asap for the same.

Thanks.
answered Jan 8 by rajeev.etc (1,508 points)
Hi,
Going through your code snippet, we found that the callback object is missing.
Please have look at our API Documentation from here(http://api.shephertz.com/app42-docs/user-management-service/?sdk=js#authenticate) for the same.
Let me know if you still face the same issue.
i have used  callback object also
App42.initialize("API_KEY","SECRET_KEY");  
var userService  = new App42User();  
userService.authenticate(userName, pwd,{    
  success: function(object){},
 error: function(error) {}   
})
I have been facing same problem
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
Migrate from Parse to ShepHertz App42
...