Quantcast
Viewing all articles
Browse latest Browse all 6

Answer by Nick Craver for JSON object is null, even though feed is valid JSON

You can call it like this:

$.ajax({  url: 'http://disqus.com/api/get_forum_posts/?user_api_key=MYKEY&forum_id=MYID&api_version=1.1&api_response_format=jsonp:myFunction',  dataType:  'jsonp'});function myFunction(data) { //make sure this is available globally  //use data}

You can give it a try here.

Like your documentation link, the parameter on the end api_response_format=jsonp:myFunction is the key, check the link directly here, even though it's an error because of the key, see how for format is different? That's what's required for a JSONP call, the functionName({data}) response format.


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>