-
-
Save mschmulen/0c2c0650a8310740f3aa to your computer and use it in GitHub Desktop.
StrongLoop AppStore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (strongloop) { | |
strongloop.dataCache = [{ | |
title: 'Loopers App', | |
url: 'appDetail.js', | |
url_scheme: 'nbcipad', | |
hasChild: true, | |
appID: '284910350', | |
appName: 'Loopers App', | |
appPublisher: 'StrongLoop.com', | |
category: 'Corp', | |
appiTunesURL: 'http://itunes.apple.com/us/app/nbc/id442839435?mt=8', | |
appIcon: 'http://a4.mzstatic.com/us/r1000/093/Purple/42/1a/71/mzl.jeuiugjm.175x175-75.jpg', | |
appDescription: ' StrongLoop Loopers Employee Directory, Favorite your often contaced co-workers - Contact Inforamation, Co-workers time zone. Native Features for emailing, calling, ', | |
}, | |
{ | |
title: 'Wunderlist', | |
url: 'appDetail.js', | |
url_scheme: 'wunderlist', | |
hasChild: true, | |
appID: '284910350', | |
appName: 'Wunderlist', | |
appPublisher: '6 Wunderkinder', | |
category: 'Productivity', | |
appiTunesURL: 'http://itunes.apple.com/us/app/wunderlist-to-do-listen/id406644151#', | |
appIcon: 'http://a1.mzstatic.com/us/r1000/087/Purple/7a/14/9f/mzl.bbfujmku.175x175-75.jpg', | |
appDescription: 'The Wunderlist mobile app for iPhone and iPod Touch will boost your productivity. Organize your to-do lists on the go and synchronize them with your free Wunderlist account. View and modify your tasks on Windows, Mac, iPad, Android and the Web. Hundreds of thousands of people worldwide use Wunderlist everyday. Wunderlist - your tasks anywhere, anytime. ', | |
}, | |
{ | |
title: 'GetGlue', | |
url: 'appDetail.js', | |
url_scheme: 'getglue', | |
hasChild: true, | |
appID: '284910350', | |
appName: 'GetGlue', | |
appPublisher: 'AdaptiveBlue', | |
category: 'Social Network', | |
appiTunesURL: 'http://itunes.apple.com/us/app/getglue/id377615302?mt=8#', | |
appIcon: 'http://a4.mzstatic.com/us/r1000/112/Purple/98/57/54/mzl.glsibxmb.175x175-75.jpg', | |
appDescription: 'GetGlue is a fun social network for entertainment. Check-in to what you are watching, reading and listening to. Connect with friends, discover new favorites, and unlock FREE stickers and discounts.', | |
} | |
]; | |
var baseURL = 'http://127.0.0.1:3000'; | |
var defaultModelName = "nodeapps"; | |
strongloop.getBaseURL = function () { | |
return baseURL; | |
}//end getBaseURL | |
// Public method for getting the data from nodeJS | |
// success: success callback function | |
// error: error callback function | |
strongloop.getData = function ( modelName , success, error) { | |
var xhr = Ti.Network.createHTTPClient(); | |
xhr.timeout = 1000000; | |
xhr.open("GET", baseURL+"/json/" + modelName ); | |
Ti.API.info( baseURL+"/json/" + modelName ); | |
xhr.onload = function() | |
{ | |
try | |
{ | |
var response = eval('('+this.responseText+')'); | |
success(response); | |
}//end try | |
catch(e){ | |
//alert(e); | |
error(e); | |
}//end catch | |
};//end onload | |
// Get the data | |
xhr.send(); | |
};//end updateDataCache | |
})(exports); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment