sapui5 - oData call to SuccessFactors Authentication -
i having trouble authenticating odata
call success factors , i'm not sure why. here code:
var username = "username"; var pwd = window.btoa("password"); console.log(pwd); var empurl = gadgets.io.getproxyurl("https://apisalesdemo8.successfactors.com/odata/v2/empjob?&$format=json"); var empmodel = new sap.ui.model.json.jsonmodel(empurl,true,username,password); empmodel.attachrequestcompleted(function(data){ console.log(data); });
i receive 401 error authentication username , password correct, checked using postman app chrome. there issue code?
Comments
Post a Comment