AnsweredAssumed Answered

osapi http get error

Question asked by kalaoke on Feb 26, 2015
Latest reply on Apr 1, 2015 by kalaoke

I try to use the osapi in my jive app to get  responses via  getfeedback api

 

Here is  my javascript code

 

osapi.http.get({

   'href' : 'https://api.getfeedback.com/surveys/' + poll.id  + '/responses',

   'format' : 'json',

   'headers': {

   'Authorization': 'Bearer xxxxxx'
   }

}).execute(function (response) {

   console.log(response.content);

});

 

i have got this response

  1. 0: {id: "http.get",…}
    1. error: {message: "internalError: java.lang.String cannot be cast to org.json.JSONArray", code: 500}

May i miss something?

Outcomes