0 Replies Latest reply on Oct 13, 2015 9:54 PM by shubhra_wairagade

    CallingThird Party  RESTful API from JIve Custom View Tile


      I tried with Ajax Jquery it works fine with JSONP-GET but DOES NOTworks with JSONP-POST.


      then I tried osapi.http.get but code not working:-


      <script type="text/javascript">


        'href' : 'myurl',

        'headers' : {'Content-Type': ['application/json'] }
          }).execute(function(response) {
        if (response.error) {   alert("Error " + response.error.code + " " + response.error.message);     } 
              else {  alert("Successfully sent data to service.") 


           request and response both are in json format

            alert :Successfully sent data to service" is getting printed

           but there is no data in content

           Object {metadata: Object, headers: Object, content: "",status: 504}