Is it possible to create a collection using a specific ajax call instead of fetching by its URL? Normally, when fetching by a collection, the URL in the collection is used. However, I need to retrieve results from an ajax call rather than the URL.
$.ajax({
type: 'GET',
headers: {'X-Parse-Application-Id':'qS0KLM***EM1tyhM9EEPiTS3VMk','X-Parse-
REST-API-Key':'nh3eoUo9G8Df****vbF2gMhcKJIfIt1Gm'},
url: "https://api.parse.com/1/classes/_User/",
data: 'where={"amici":
{"__type":"Pointer","className":"_User","objectId":"g0fRKnrgZN"}}',//restituisce chi ha
negli amici l'id objectId
//contentType: "application/json",
success: function(data) {
console.log(data );
},
error: function(data) {
console.log("ko" );
}
});
I'm looking to build my collection based on this particular ajax call.