Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Use Imagga API Sample
use Curl\Curl;
$curl_url = ""
$curl = new Curl();
$curl->setopt(CURLOPT_HEADER, FALSE);
$curl->setBasicAuthentication($api_key, $api_secret);
$curl->get($curl_url, array(
'url' => $file,
'language' => 'ja'
$response = json_decode($curl->response);
$results = $response->results;
$tags = $results[0]->tags;
foreach ($tags as $tag) {
echo "confidence : " . $tag->confidence . " tag : " . $tag->tag . "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.