DemoEnhancePhoto.php 351 B

12345678910111213
  1. <?php
  2. require('../../vendor/autoload.php');
  3. use Volc\Service\Visual;
  4. $client = Visual::getInstance();
  5. // call below method if you dont set ak and sk in ~/.volc/config
  6. $client->setAccessKey($ak);
  7. $client->setSecretKey($sk);
  8. echo "\nDemo EnhancePhoto\n";
  9. $response = $client->EnhancePhoto(['form_params' => ['image_base64' => '']]);
  10. echo $response;