Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
18 Views

undefined is not a function

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

Tags (2)
0 Kudos
1 Reply
Highlighted
Employee
18 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

0 Kudos