$endpoint = "http://disqus.com/api/3.0/forums/listPosts.json?api_key=" . DISQUS_API_KEY . "&forum=" . DISQUS_FORUM . "&limit=" . $limit . "&related=thread";
$session = curl_init($endpoint);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($session);
curl_close($session);
$results = json_decode($result);