trait AnalysisTrait

Represents Analysis API methods.

Properties

ApiClient $apiV2Client Defined in AdminApi class.

Methods

analyze(string $inputType, string $analysisType, string $uri = null)

Analyzes an asset with the requested analysis type.

analyzeAsync(string $inputType, string $analysisType, string $uri = null)

Analyzes an asset with the requested analysis type asynchronously.

Details

ApiResponse analyze(string $inputType, string $analysisType, string $uri = null)

Analyzes an asset with the requested analysis type.

Parameters

Name Type Description
$inputType string The type of input for the asset to analyze ('uri').
$analysisType string The type of analysis to run ('google_tagging', 'captioning', 'fashion').
$uri string The URI of the asset to analyze.

Return Value

ApiResponse

See also

AdminApi::analyzeAsync()
https://cloudinary.com/documentation/media_analyzer_api_reference

PromiseInterface analyzeAsync(string $inputType, string $analysisType, string $uri = null)

Analyzes an asset with the requested analysis type asynchronously.

Parameters

Name Type Description
$inputType string The type of input for the asset to analyze ('uri').
$analysisType string The type of analysis to run ('google_tagging', 'captioning', 'fashion').
$uri string The URI of the asset to analyze.

Return Value

PromiseInterface

See also

https://cloudinary.com/documentation/media_analyzer_api_reference