PHP code example of andydune / hypercomments
1. Go to this page and download the library: Download andydune/hypercomments 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/ */
andydune / hypercomments example snippets
use AndyDune\Hypercomments\Api;
$data = (Api($widget_id, $secret))
->comments()->list()
->setLink('<page url with comments')
->setOffset(<int>)
->setLimit(<int>)
->get();
$this->assertTrue(is_array($data));
$this->assertArrayHasKey('result', $data);
$this->assertArrayHasKey('data', $data);