Thursday, 1 June 2017

Podio Filter item method response missing files details

In nodejs I am trying to filter podio data by using FilterItems its working fine but its not giving files attributes. I can get the files count but I need uploaded files details. Here is my the sample code

var Podio = require('podio-js').api;
var podio = new Podio({
                    authType: 'server',
                    clientId: 'XXXXX',
                    clientSecret:'*****************'
                });
podio.authenticateWithApp('XXXXX', 'YYYYYYYYYYYYYY', function(err) {
      podio.request('POST', '/item/app/XXXXX/filter', {
           "filters":  { "email":'sample@gmail.com'}
      }).then(function(responseData) {
              console.log(responseData);
      }).catch(function(e) {
              console.log(e);
      });
});

To solve this problem am doing one more call Get Item by using Item-id (Which I have received from filter call).

Here my question is why filter method is not giving files details whether its bug in podio filter call or is there any specific reason. Please suggest better way too.

Note: In my scenario I should use only filter functionality;



via Sharathi RB

No comments:

Post a Comment