Working with meta profiles from PHP SDK
PHP SDK offers you a way to handle meta profiles from the backend of your system.
Create and manage your meta profiles and their processes through simple API calls. You can do it through your Ziggeo account dashboard, however you can also do it through your own API calls.
It is simple, fast and bellow you can see exactly how to do it.
PHP SDK Meta Profiles Methods
- create Create a new meta profile.
$ziggeo->metaProfiles()->create($arguments = array())
- key Meta Profile profile key.
- title Meta Profile profile title.
This method returns JSONExample:<?php /* This script will show you how to create a meta profile Parameters you need to pass: 1. app_token 2. private_key 3. meta_title 4. meta_key */ require_once(dirname(__FILE__) . "/../Ziggeo.php"); $opts = getopt("", array("app_token:", "private_key:", "meta_title:", "meta_key::")); $ziggeo = new Ziggeo($opts["app_token"], $opts["private_key"]); $arguments = array( "title" => $opts["meta_title"], "key" => $opts["meta_key"] ); var_dump($arguments); $ziggeo->metaProfiles()->create($arguments); ?>
- index Get list of meta profiles.
$ziggeo->metaProfiles()->index($arguments = array())
- limit Limit the number of returned meta profiles. Can be set up to 100.
- skip Skip the first [n] entries.
- reverse Reverse the order in which meta profiles are returned.
This method returns JSON - get Get a single meta profile
$ziggeo->metaProfiles()->get($token_or_key)
This method returns JSON - delete Delete the meta profile
$ziggeo->metaProfiles()->delete($token_or_key)
PHP SDK Meta Profile Processes Methods
- index Return all processes associated with a meta profile
$ziggeo->metaProfileProcess()->index($meta_token_or_key)
This method returns JSON - get Get a single process
$ziggeo->metaProfileProcess()->get($meta_token_or_key, $token_or_key)
This method returns JSON - delete Delete the process
$ziggeo->metaProfileProcess()->delete($meta_token_or_key, $token_or_key)
- create_video_analysis_process Create a new video analysis meta process
$ziggeo->metaProfileProcess()->create_video_analysis_process($meta_token_or_key)
This method returns JSONExample:<?php /* This script will show you how to create a meta profile and attach video analysis process Info: https://ziggeo.com/features/visual-analysis Parameters you need to pass: 1. app_token 2. private_key 3. meta_profiles_token */ require_once(dirname(__FILE__) . "/../Ziggeo.php"); $opts = getopt("", array("app_token:", "private_key:", "meta_profiles_token:")); //We initiate our SDK $ziggeo = new Ziggeo($opts["app_token"], $opts["private_key"]); $meta_profiles_token = $opts["meta_profiles_token"]; $result = $ziggeo->metaProfileProcess()->create_video_analysis_process($meta_profiles_token); var_dump($result); ?>
- create_audio_transcription_process Create a new audio transcription meta process
$ziggeo->metaProfileProcess()->create_audio_transcription_process($meta_token_or_key)
This method returns JSONExample:<?php /* This script will show you how to create a meta profile and attach audio transcription process Info: https://ziggeo.com/features/audio-transcription Parameters you need to pass: 1. app_token 2. private_key 3. meta_profiles_token */ require_once(dirname(__FILE__) . "/../Ziggeo.php"); $opts = getopt("", array("app_token:", "private_key:", "meta_profiles_token:")); //We initiate our SDK $ziggeo = new Ziggeo($opts["app_token"], $opts["private_key"]); $meta_profiles_token = $opts["meta_profiles_token"]; $ziggeo->metaProfileProcess()->create_audio_transcription_process($meta_profiles_token); ?>
- create_nsfw_process Create a new nsfw filter meta process
$ziggeo->metaProfileProcess()->create_nsfw_process($meta_token_or_key, $arguments = array())
- nsfw_action One of the following three: approve, reject, nothing.
This method returns JSONExample:<?php /* This script will show you how to create a meta profile and attach NSFW process Info: https://ziggeo.com/features/nsfw Parameters you need to pass: 1. app_token 2. private_key 3. meta_profiles_token */ require_once(dirname(__FILE__) . "/../Ziggeo.php"); $opts = getopt("", array("app_token:", "private_key:", "meta_profiles_token:")); //We initiate our SDK $ziggeo = new Ziggeo($opts["app_token"], $opts["private_key"]); $meta_profiles_token = $opts["meta_profiles_token"]; $ziggeo->metaProfileProcess()->create_nsfw_process($meta_profiles_token, array("nsfw_action"=>"reject")); ?>
- create_profanity_process Create a new profanity filter meta process
$ziggeo->metaProfileProcess()->create_profanity_process($meta_token_or_key, $arguments = array())
- profanity_action One of the following three: approve, reject, nothing.
This method returns JSON