13 lines
		
	
	
		
			355 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			355 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| 
								 | 
							
								<?php
							 | 
						|||
| 
								 | 
							
								require('../../vendor/autoload.php');
							 | 
						|||
| 
								 | 
							
								use Volc\Service\Visual;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								$client = Visual::getInstance();
							 | 
						|||
| 
								 | 
							
								// call below method if you dont set ak and sk in ~/.volc/config
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								$client->setAccessKey($ak);
							 | 
						|||
| 
								 | 
							
								$client->setSecretKey($sk);
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								echo "\nDemo GeneralSegment\n";
							 | 
						|||
| 
								 | 
							
								$response = $client->GeneralSegment(['form_params' => ['image_base64' => '']]);
							 | 
						|||
| 
								 | 
							
								echo $response;
							 |