Issue in calling req.oracleMobile.location.places.register in MCS
Summary
Issue in calling req.oracleMobile.location.places.register in MCSContent
Happy new year,
In Oracle Mobile Cloud service if tried to call req.oracleMobile.location.places.register from API.
I wrote the following code:
var username="mobileUser";
var places = {"items":[
{
"name":req.body.name,
"description":req.body.description,
"address":{
"gpsPoint":{
"latitude":req.body.latitude,
"longitude":req.body.longitude
}
},
"attributes":{
"address":req.body.address,
"telephone":req.body.telephone,
"category":req.body.category
}
}]};
req.oracleMobile.location.places.register(places,
{
username: username,
mbe: req.oracleMobile.mbe.getMBE().name,
version: req.oracleMobile.mbe.getMBE().version
}).then(
function (result) {
res.send(200,"");
},
function (error) {