You are here

function Disqus::__construct in Disqus 7

Creates a new interface to the Disqus API.

Parameters

$user_api_key: (optional) The User API key to use.

$forum_api_key: (optional) The Forum API key to use.

$api_url: (optional) The prefix URL to use when calling the Disqus API.

File

./disqus.php, line 54
Provides the Disqus PHP API.

Class

Disqus
The Disqus PHP API.

Code

function __construct($user_api_key = NULL, $forum_api_key = NULL, $api_url = 'http://disqus.com/api/') {
  $this->user_api_key = $user_api_key;
  $this->forum_api_key = $forum_api_key;
  $this->{$api_url} = $api_url;
}