1 Reply Latest reply on May 20, 2013 3:03 AM by sven.vetter

    JavaScript v3 API: How can I filter documents by category

    sven.vetter

      Hello

       

      I'd like to retrieve documents for a given space. This works fine.

      Now I want filter to categories. But I don't know, how this works. Filter by tags isn't a problem - but by categories?

       

      My example:

      osapi.jive.corev3.places.get({uri:"/places/15827"}).execute(function(response) {
        var params = {
            count : 100,
            type : "document",
            search: "category[my-test-category]"
        };
        // get the request that will fetch content
        response.getContents(params).execute(function(response) {
        console.log(response);
        });
      });
      
      

       

      Any idea?

      I tried with search, filter, category, categories, cat, ... - no success

       

      Thanks

      Sven