PHP code example of compwright / disguz

1. Go to this page and download the library: Download compwright/disguz library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

compwright / disguz example snippets


$config = [
	'api_key' => getenv('DISQUS_API_KEY'),
	'api_secret' => getenv('DISQUS_API_SECRET'),
	'access_token' => getenv('DISQUS_ACCESS_TOKEN'),
];
$client = Disguz::factory($config);

$params = [
	'message' => 'This is another test post',
	'thread' => $argv[1],
];
$result = $client->postsCreate($params);