PHP code example of ping-qu / open-api-sdk

1. Go to this page and download the library: Download ping-qu/open-api-sdk 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/ */

    

ping-qu / open-api-sdk example snippets

angular2html
$client = new Client($access_key_id,$access_key_secret);
$res = $client
          ->VideoJob()
          ->setCallbackUrl($callback_url) //设置转码结果通知url
          ->setCallbackParams('test')
          ->add($input_path,$output_file,$preset_id,$pipeline_id);