jleagle/imagga-api-client

一个用于上传图片到Imagga并从中检索API信息的包。

0.1.0 2015-04-01 20:49 UTC

This package is auto-updated.

Last update: 2024-09-09 13:49:56 UTC


README

一个用于上传图片到Imagga并从中检索API信息的包。

使用您的API详细信息实例化包

$imagga = new Imagga(
  $apiKey,
  $apiSecret
);

示例API调用

// Most methods can take an array of either URLs or content IDs.
$images = [
  'http://playground.imagga.com/static/img/example_photo.jpg',
  'http://playground.imagga.com/static/img/example_photos/japan-605234_1280.jpg'
];

// Gets image tags
$tags = $imagga->tags($images);

// Get your current API usage levels
$usage = $imagga->usage();

// Get the colors of an image
$colors = $imagga->colors($images);