PHP code example of mediaupstream / cielo24_php

1. Go to this page and download the library: Download mediaupstream/cielo24_php 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/ */

    

mediaupstream / cielo24_php example snippets



  


  



  elo = new Cielo\Api(array(
    'user' => 'test_user',
    'key'  => 'ea9fc1ce98f5acf74a4f93de2bcfcfa5'
  ));

  // login
  $cielo->login(array('password' => 'test_password'));

  // create a new job
  $job = $cielo->job_create();

  // add some media to the job
  $cielo->add_media(array(
    'job_id' => $job->JobId,
    'media_url' => 'http://domain.com/media.mp4'
  ));

  // request that the media be transcribed
  $cielo->perform_transcription(array(
    'job_id' => $job->JobId,
    'transcription_fidelity' => 'MECHANICAL',
    'priority' => 'ECONOMY'
  ));

  // attempt to get the transcript for this job
  $cielo->get_transcript(array(
    'job_id' => $job->JobId
  ));

bash
composer 
bash
mv tests/_config.default.php tests/_config.php