Flow in Oracle MCS API Call
Summary
Flow in Oracle MCS API CallContent
Hi,
Using the below code i am trying to achieve the following.
in my GetContactIdFromDeviceId - i want to get the values then the call should be returned back to the calling method.
i need the return of dbUtility.GetContactIdFromDeviceId to be an object which i can then send as part of
res.status(200).send(bodyObj);
service.get('/mobile/custom/Fake/login', function (req, res) { var finalResponse; var connector = constants.CONNECTOR_API_LOGIN_URI; if (0 > versionNumberIndex) { //Something } else { var handler = function (error, response, body) { if (error) { if ('message' in error) { errorMsg = error.message; res.send(500, errorMsg); res.end(); } else { //Something } else { if (response.statusCode !== 200) { //Something } else if (response.statusCode == 401) { //Something } else { var bodyObj = JSON.parse(body); bodyObj.deviceId = "Device-ASASASAS"; var getContactIdFromDeviceId = dbUtility.GetContactIdFromDeviceId(req,bodyObj.deviceId); res.status(200).send(bodyObj); res.end(); } } }; req.oracleMobile.rest.get(optionsList, handler); } });
1