Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // New source code available here: http://pastebin.com/pa6H37LQ
- Parse.Cloud.job("getWP8Apps", function(request, response) {
- Parse.Cloud.useMasterKey();
- var counter = 0;
- var query = new Parse.Query(Parse.developer);
- query.each(function(developer) {
- Parse.Cloud.httpRequest({
- url: 'http://http://zunderstorehost.azurewebsites.net/api/WP8AppStoreAppList/Publisher/' . developer.publisherName,
- success: function(httpResponse) {
- var apps = httpResponse.data;
- for(var app in apps) {
- var newapp = Parse.Object.extend("application");
- var newApp = new newapp();
- newApp = app;
- newApp.save();
- }
- }
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement