Q: What programming languages are supported by ProductAI SDK?

4 types: Java, C#, PHP, Python

Q: Why no Javascript SDK?

Javascript is visible in client side. It may result in your ACCESS_KEY_ID leaked, and cause a damage at your account. But we will consider to provide node version of SDK in the future.

Q: What is JDK version supported?

JDK 1.6 and 1.8 are supported. For detail, please read Java SDK

Q: What is Python version supported?

Python 2.7/3.5/3.6 are supported. For detail, please read Python SDK

Q: What is .Net version supported?

.Net 4.0+ is supported. For detail, please read .Net SDK

Q: What is PHP version supported?

PHP 5.6 is supported. For detail, please read PHP SDK

Q: tests/APITest.php in PHP SDK raise the error?

APITest.php depends on PHPUnit test framework. When configuration isn’t correct, the script will raise an error. If you haven’t get familiar to PHPUnit, please ignore tests folder. Pasting the below code into a new PHP file (Note: replace ‘*‘ strings with your real data)


define('ACCESS_KEY_ID', '********************************');
define('SECRET_KEY', '********************************');
define('IMAGE_SET_ID', '*********');
define('SERVICE_ID_SEARCH', '*********');
define('SERVICE_TYPE_SEARCH', 'search');


use ProductAI\API;

$product_ai = new API(ACCESS_KEY_ID, SECRET_KEY);
$product_ai->curl_opt[CURLOPT_TIMEOUT] = 120;
$result = $product_ai->searchImage(SERVICE_TYPE_SEARCH, SERVICE_ID_SEARCH, '');


Q: When i use PHP SDK, an error Uncaught exception 'Exception' with message 'Request failed. Problem with the SSL CA cert (path? access rights?)' in /var/www/html/Base.php:163 is thrown.

Please check if SSL verification file ca.pem is located at the same folder with Base.php.