Quantcast
Viewing all articles
Browse latest Browse all 8068

Select data from multiple classes

I'm currently working on getting data from parse.com. What I want is to get data from more than 1 class. I'm testing in android platform.

This is my current code now which will retrieve data from ONLY 1 class.

var parseURL = "https://api.parse.com/1/classes/ClassName";
 
var xhr = Ti.Network.createHTTPClient({
    onload: function(e) {
     Ti.API.info('success in getting result');
},
    onerror: function(e) {
        Ti.API.info(this.responseText);
    },
    timeout:10000
 
 xhr.open("GET", parseURL);
 
xhr.setRequestHeader('X-Parse-Application-Id','xxx');
xhr.setRequestHeader('X-Parse-REST-API-Key','xxx');
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send();  
}
Thanks in advance!

Viewing all articles
Browse latest Browse all 8068

Trending Articles