Post

2 followers Follow
1
Avatar

Podio developer api

I am using podio api to get list of file..

Authentication is working fine..I am getting access token, refresh token, user id.

But when I call the api to get files..it shows error..

I tried a lot things, but its not working for me.
06:38 PM

{"errorparameters":{},"error_detail":null,"error_propagate":false,"request":{"url":"http:\/\/api.podio
.com\/file","query_string":"=1444914230142","method":"GET"},"errordescription":"Invalid filter key ","error":"Invalid filter key _"}

Getting this error response

Dipen Modi

Please sign in to leave a comment.

11 comments

0
Avatar

Hi Dipen,

What request are you making which causes this error?

Thanks,
Andreas

Andreas Garnæs 0 votes
0
Avatar

Yes I am using post request

var data = {"authenticity_token" : token,
"query_param[limit]" : "20",
"query_param[sort_by]" : "name",
"query_param[sort_desc]" : true,
"uri" : "/file/",
"utf8" : "✓"
}

Dipen Modi 0 votes
0
Avatar

Also my request content type is set to
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',

Dipen Modi 0 votes
0
Avatar

Below is my code to get files...I am getting access token successfully

$('.projects').click(function () {
var data = {"authenticity_token" : token,
"query_param[limit]" : "20",
"query_param[sort_by]" : "name",
"query_param[sort_desc]" : true,
"uri" : "/file/",
"utf8" : "✓"
}
var url = "https://developers.podio.com/doc/process_request";
$.ajax({
url: url,
type: 'POST',
dataType: "JSON",

data : data,
cache: false,
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
'Accept' : '/'
},
success: function(data) {
// var string = JSON.stringify(data, null, "\t");
// $('#files textarea').text(string);
// $('#well-files').val(url);

},
error: function() {

       }
    });
});
Dipen Modi 0 votes
0
Avatar

Hi dipen,

You should be using the url https://api.podio.com instead of https://developers.podio.com/doc/process_request.

If you're using Javascript, consider taking a look at podio-js (a Javascript client for Podio).

Best,
Andreas

Andreas Garnæs 0 votes