PHP code example of ziggeo / ziggeophpsdk

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

    

ziggeo / ziggeophpsdk example snippets

    git clone https://github.com/Ziggeo/ZiggeoPhpSdk
 
 o = new Ziggeo('*token*', '*private_key*', '*encryption_key*', *config*); 

$ziggeo->videos()->index($arguments = array())

$ziggeo->videos()->count($arguments = array())

$ziggeo->videos()->get($token_or_key)

$ziggeo->videos()->get_bulk($arguments = array())

$ziggeo->videos()->stats_bulk($arguments = array())

$ziggeo->videos()->download_video($token_or_key)

$ziggeo->videos()->download_image($token_or_key)

$ziggeo->videos()->get_stats($token_or_key)

$ziggeo->videos()->push_to_service($token_or_key, $arguments = array())

$ziggeo->videos()->apply_effect($token_or_key, $arguments = array())

$ziggeo->videos()->apply_meta($token_or_key, $arguments = array())

$ziggeo->videos()->update($token_or_key, $arguments = array())

$ziggeo->videos()->update_bulk($arguments = array())

$ziggeo->videos()->delete($token_or_key)

$ziggeo->videos()->create($arguments = array())

$ziggeo->videos()->analytics($token_or_key, $arguments = array())

$ziggeo->streams()->index($video_token_or_key, $arguments = array())

$ziggeo->streams()->get($video_token_or_key, $token_or_key)

$ziggeo->streams()->download_video($video_token_or_key, $token_or_key)

$ziggeo->streams()->download_image($video_token_or_key, $token_or_key)

$ziggeo->streams()->push_to_service($video_token_or_key, $token_or_key, $arguments = array())

$ziggeo->streams()->delete($video_token_or_key, $token_or_key)

$ziggeo->streams()->create($video_token_or_key, $arguments = array())

$ziggeo->streams()->attach_image($video_token_or_key, $token_or_key, $arguments = array())

$ziggeo->streams()->attach_video($video_token_or_key, $token_or_key, $arguments = array())

$ziggeo->streams()->attach_subtitle($video_token_or_key, $token_or_key, $arguments = array())

$ziggeo->audios()->index($arguments = array())

$ziggeo->audios()->count($arguments = array())

$ziggeo->audios()->get($token_or_key)

$ziggeo->audios()->get_bulk($arguments = array())

$ziggeo->audios()->download_audio($token_or_key)

$ziggeo->audios()->update($token_or_key, $arguments = array())

$ziggeo->audios()->update_bulk($arguments = array())

$ziggeo->audios()->delete($token_or_key)

$ziggeo->audios()->create($arguments = array())

$ziggeo->audioStreams()->index($audio_token_or_key, $arguments = array())

$ziggeo->audioStreams()->get($audio_token_or_key, $token_or_key)

$ziggeo->audioStreams()->download_audio($audio_token_or_key, $token_or_key)

$ziggeo->audioStreams()->delete($audio_token_or_key, $token_or_key)

$ziggeo->audioStreams()->create($audio_token_or_key, $arguments = array())

$ziggeo->authtokens()->get($token)

$ziggeo->authtokens()->update($token_or_key, $arguments = array())

$ziggeo->authtokens()->delete($token_or_key)

$ziggeo->authtokens()->create($arguments = array())

$ziggeo->application()->get()

$ziggeo->application()->update($arguments = array())

$ziggeo->application()->get_stats($arguments = array())

$ziggeo->effectProfiles()->create($arguments = array())

$ziggeo->effectProfiles()->index($arguments = array())

$ziggeo->effectProfiles()->get($token_or_key)

$ziggeo->effectProfiles()->delete($token_or_key)

$ziggeo->effectProfiles()->update($token_or_key, $arguments = array())

$ziggeo->effectProfileProcess()->index($effect_token_or_key, $arguments = array())

$ziggeo->effectProfileProcess()->get($effect_token_or_key, $token_or_key)

$ziggeo->effectProfileProcess()->delete($effect_token_or_key, $token_or_key)

$ziggeo->effectProfileProcess()->create_filter_process($effect_token_or_key, $arguments = array())

$ziggeo->effectProfileProcess()->create_watermark_process($effect_token_or_key, $arguments = array())

$ziggeo->effectProfileProcess()->edit_watermark_process($effect_token_or_key, $token_or_key, $arguments = array())

$ziggeo->metaProfiles()->create($arguments = array())

$ziggeo->metaProfiles()->index($arguments = array())

$ziggeo->metaProfiles()->get($token_or_key)

$ziggeo->metaProfiles()->delete($token_or_key)

$ziggeo->metaProfileProcess()->index($meta_token_or_key)

$ziggeo->metaProfileProcess()->get($meta_token_or_key, $token_or_key)

$ziggeo->metaProfileProcess()->delete($meta_token_or_key, $token_or_key)

$ziggeo->metaProfileProcess()->create_video_analysis_process($meta_token_or_key)

$ziggeo->metaProfileProcess()->create_audio_transcription_process($meta_token_or_key)

$ziggeo->metaProfileProcess()->create_nsfw_process($meta_token_or_key, $arguments = array())

$ziggeo->metaProfileProcess()->create_profanity_process($meta_token_or_key, $arguments = array())

$ziggeo->webhooks()->create($arguments = array())

$ziggeo->webhooks()->confirm($arguments = array())

$ziggeo->webhooks()->delete($arguments = array())

$ziggeo->analytics()->get($arguments = array())
bash
docker build . -t ziggeo-php
bash
docker run --rm ziggeo-php /ziggeo/demos/list_all_videos.php --token xxx --privatekey xxx
bash
php -S 0.0.0.0:12345 ./demos/webhook-printer.php
bash
docker run --rm -p 12345:12345 ziggeo-php php -S 0.0.0.0:12345 /ziggeo/demos/webhook-printer.php