PHP code example of chicpro / php-naver-datalab-api
1. Go to this page and download the library: Download chicpro/php-naver-datalab-api 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/ */
chicpro / php-naver-datalab-api example snippets
use chicpro\DATALAB\SEARCH;
$search = new SEARCH();
$search->setCredential('client id', 'client secret');
$search->setStartDate('2018-07-01');
$search->setEndDate('2018-07-15');
$search->setKeywordGroups('네이버', '네이버, naver');
$search->setKeywordGroups('구글', '구글, google');
$result = $search->sendRequest();
print_r($result);