Software Archive
Read-only legacy content
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

undefined is not a function

Mohamed_t_
Beginner
104 Views

Hi

I try to integrate my own service in a project but I get this message "undefined is not a function"

moon.js
(function (credentials, helpers) {
  var exports = {};
  
  /* Data Feed Function */
  exports.tests = function (params) {
    var url = 'http://www.mm.ie/api?task=tests';
    return $.ajax({url: url});
  };
  
  return exports
})
moon.json
{
"endpoints": [
  {
    "name": "tests",
    "dashboardUrl": "#",
    "methods": [
      {
        "MethodName": "tests",
        "Synopsis": "Grabs information set"
      }
    ]
  }
]
}

apiconfig.json

{
  "moonib": {
    "name": "Moon",
    "description": "A great API",
    "dashboardUrl": "#"
  }
}

Thanks

0 Kudos
1 Reply
Amrita_C_Intel
Employee
104 Views
 

 

Hello,

Trying using this video as a reference https://software.intel.com/en-us/videos/integrating-a-new-service. It might work for you.

 

Or this:

https://software.intel.com/en-us/videos/oauth-2-and-services. It uses Foursquare as an example. 

Here's the link to the whole app designer video tutorials list: https://software.intel.com/en-us/xdk/videos/intel-xdk-app-designer

 

The Services tab was moved into the Develop tab.  It's in the lower left corner. When you work with that corner, it'll open up larger

Reply