Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
Your Authentication type: basicAuth undefined, — Cloud Customer Connect
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

Your Authentication type: basicAuth undefined,

Received Response
16
Views
22
Comments
edited Mar 24, 2017 7:00AM in Digital Assistant and Mobile 22 comments

Summary

Your Authentication type: basicAuth undefined,

Content

var mcs_config = {

  "logLevel": mcs.LOG_LEVEL.INFO,

  "logHTTP": true,

  "mobileBackends": {

    "TEST": {

      "default": true,

      "baseUrl": "https://development1-inalgarytmtrial.mobileenv.us2.oraclecloud.com:443",

      "applicationKey": "YOUR_BACKEND_APPLICATION_KEY",

        "authorization": {

        "basicAuth": {

          "backendId": "d838ab82-9755-4f54-bca1-38270afac134",

          "anonymousToken": "SU5BTEdBUllUTVRSSUFMX0RFVkVMT1BNRU5UMV9NT0JJTEVfQU5PTllNT1VTX0FQUElEOkFyZzJlanZfc3oxcW1h"

        }

      }

    }

  },

};

  // initialize MCS mobile backend

    mcs.MobileBackendManager.setConfig(mcs_config);

    var mbe = mcs.MobileBackendManager.getMobileBackend('TEST');

    mbe.setAuthenticationType("basicAuth");

var invokeCustomAPI = function(uri,method,payload) {

  var deferred = $q.defer();

   mbe.CustomCode.invokeCustomCodeJSONRequest(uri , method , payload

   , function(statusCode,data) {deferred.resolve(data)}

   , function(statusCode,data) {deferred.reject(statusCode,data)});        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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