You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Issue in calling req.oracleMobile.location.places.register in MCS

Received Response
13
Views
2
Comments
edited Jul 17, 2017 7:00AM in Digital Assistant and Mobile 2 comments

Summary

Issue in calling req.oracleMobile.location.places.register in MCS

Content

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) {

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!