analyzeAsync($inputType, $analysisType, $uri, $parameters)->wait(); } /** * Analyzes an asset with the requested analysis type asynchronously. * * @param string $inputType The type of input for the asset to analyze ('uri'). * @param string $analysisType The type of analysis to run ('google_tagging', 'captioning', 'fashion'). * @param string $uri The URI of the asset to analyze. * @param array $parameters Additional parameters. * * @return PromiseInterface * * @see https://cloudinary.com/documentation/media_analyzer_api_reference */ public function analyzeAsync($inputType, $analysisType, $uri = null, $parameters = null) { $endPoint = [ApiEndPoint::ANALYSIS, 'analyze', $inputType]; $params = ['analysis_type' => $analysisType, 'uri' => $uri, 'parameters' => $parameters]; return $this->apiV2Client->postJsonAsync($endPoint, $params); } }