diff options
| author | Techywarrior <techywarrior@gmail.com> | 2013-04-28 10:36:49 -0700 |
|---|---|---|
| committer | Techywarrior <techywarrior@gmail.com> | 2013-04-28 10:36:49 -0700 |
| commit | 0b87caf1a76b2ad29e0c9bbad16c74c6a4bf00b8 (patch) | |
| tree | f70672930d8e1ebd003997697083c86d9d8b4623 /MediaBrowser.WebDashboard/ApiClient.js | |
| parent | f09902c6a7b279e08eb74adcb654276ad50fb442 (diff) | |
| parent | c9117070e3f053e11a59946b3f4db3f880f79bce (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.WebDashboard/ApiClient.js')
| -rw-r--r-- | MediaBrowser.WebDashboard/ApiClient.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/MediaBrowser.WebDashboard/ApiClient.js b/MediaBrowser.WebDashboard/ApiClient.js index 42aa7d52c..9999c0fe0 100644 --- a/MediaBrowser.WebDashboard/ApiClient.js +++ b/MediaBrowser.WebDashboard/ApiClient.js @@ -1733,6 +1733,35 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) { }); }; + self.getVideoBackdrops = function (userId, itemId) { + + if (!userId) { + throw new Error("null userId"); + } + if (!itemId) { + throw new Error("null itemId"); + } + + var url = self.getUrl("Users/" + userId + "/Items/" + itemId + "/VideoBackdrops"); + + return self.ajax({ + type: "GET", + url: url, + dataType: "json" + }); + }; + + self.getSearchHints = function (options) { + + var url = self.getUrl("Search/Hints", options); + + return self.ajax({ + type: "GET", + url: url, + dataType: "json" + }); + }; + /** * Gets special features for an item */ |
