From 09b9b1d90e95ac751e8b8f0744dc366dde161e33 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 18 Dec 2014 19:26:22 +0000 Subject: [PATCH] update api example --- static/js/apiDialog.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/static/js/apiDialog.js b/static/js/apiDialog.js index 00c37eab..6b3b5a9b 100644 --- a/static/js/apiDialog.js +++ b/static/js/apiDialog.js @@ -195,8 +195,8 @@ pandora.ui.apiDialog = function() { + ' pandora_client to automate certain tasks.

\n' + '

To get started, just open the console and paste the' + ' following snippet. For the first ten items that are' - + ' both shorter than one hour and whose title does not' - + ' start with "X" (sorted by duration, then title, both' + + ' both shorter than one hour and whose title starts with' + + ' either "a" or "the" (sorted by duration, then title, both' + ' in ascending order), it will return their duration,' + ' id and title properties.

', [pandora.site.site.name])) @@ -207,7 +207,13 @@ pandora.ui.apiDialog = function() { + " query: {\n" + " conditions: [\n" + " {key: 'duration', operator: '<', value: '01:00:00'},\n" - + " {key: 'title', operator: '!=', value: 'x*'}\n" + + " {\n" + + " conditions: [\n" + + " {key: 'title', operator: '=', value: 'a*'}\n" + + " {key: 'title', operator: '=', value: 'the*'}\n" + + " ],\n" + + " operator: '|'\n" + + " }\n" + " ],\n" + " operator: '&'\n" + " },\n"