added library grouping settings.

This commit is contained in:
Luke Pulverenti 2014-06-04 22:32:40 -04:00
parent dc1da009b3
commit d0f7690950
9 changed files with 80 additions and 30 deletions

View file

@ -2552,6 +2552,23 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
});
};
self.getUserViews = function (userId, options) {
if (!userId) {
throw new Error("null userId");
}
options = options || {};
var url = self.getUrl("Users/" + userId + "/Views", options);
return self.ajax({
type: "GET",
url: url,
dataType: "json"
});
};
/**
Gets artists from an item
*/