PHP code example of cloudinary / analysis
1. Go to this page and download the library: Download cloudinary/analysis 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/ */
cloudinary / analysis example snippets
onfigure OAuth2 access token for authorization: OAuth2
// $config = Cloudinary\Analysis\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure Cloudinary URL: basicAuth
$config = Cloudinary\Analysis\Configuration::getDefaultConfiguration()
->setCloudinaryUrl('cloudinary://key:secret@cloud_name');
$apiInstance = new Cloudinary\Analysis\Api\AnalysisApi(null, $config);
Instance = new Cloudinary\Analysis\Api\AnalysisApi();
Instance = new Cloudinary\Analysis\Api\AnalysisApi();
$analyzeAIVisionGeneralRequest = new \Cloudinary\Analysis\Model\AnalyzeAIVisionGeneralRequest(); // \Cloudinary\Analysis\Model\AnalyzeAIVisionGeneralRequest | A JSON object containing request parameters
try {
$result = $apiInstance->analyzeAiVisionGeneral($analyzeAIVisionGeneralRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AnalysisApi->analyzeAiVisionGeneral: ', $e->getMessage(), PHP_EOL;
}