13 lines
		
	
	
		
			370 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			370 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						||
require('../../vendor/autoload.php');
 | 
						||
 | 
						||
use Volc\Service\AdBlocker;
 | 
						||
$client = AdBlocker::getInstance();
 | 
						||
 | 
						||
// call below method if you dont set ak and sk in ~/.volc/config
 | 
						||
$client->setAccessKey("ak");
 | 
						||
$client->setSecretKey("sk");
 | 
						||
 | 
						||
$response = $client->adBlock(3332, "chat", "{\"uid\":123411, \"operate_time\":1609818934, \"chat_text\":\"a😊\"}");
 | 
						||
echo $response;
 |