How can I get all list items created or changed by the currently logged in user with this function? What's the correct query?
// Getting list items based on ODATA Query
function getListItems(url, listname, query, complete, failure) {
// Executing our colors ajax request
$.ajax({
url: url + "/_api/web/lists/getbytitle('" + listname + "')/items" + query,
method: "GET",
headers: { "Accept": "application/json; odata=verbose" },
success: function (data) {
complete(data); // Returns JSON collection of the results
},
error: function (data) {
failure(data);
}
});
}