diff --git a/CHANGELOG.md b/CHANGELOG.md index 650c8924e..415c249e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 1.7.173 - 2019-11-22 +- First version. + + ## 1.7.172 - 2019-11-22 - Update Api Request And Response structure. diff --git a/SUPPORTED-EN.md b/SUPPORTED-EN.md index a5afe0ff5..635af6c73 100644 --- a/SUPPORTED-EN.md +++ b/SUPPORTED-EN.md @@ -1,7 +1,7 @@ [简体中文](./SUPPORTED.md) | English # Supported -Alibaba Cloud SDK for PHP has supported quick access to 171 versions of 151 products, as listed below: +Alibaba Cloud SDK for PHP has supported quick access to 172 versions of 152 products, as listed below: | Products | Versions | |----------|-------------| @@ -83,6 +83,7 @@ Alibaba Cloud SDK for PHP has supported quick access to 171 versions of 151 prod | [ITaaS](https://packagist.org/packages/alibabacloud/itaas) | V20170505 | | [ImageSearch](https://packagist.org/packages/alibabacloud/imagesearch) | V20180120, V20190325 | | [Imageenhan](https://packagist.org/packages/alibabacloud/imageenhan) | V20190930 | +| [Imagerecog](https://packagist.org/packages/alibabacloud/imagerecog) | V20190930 | | [Imm](https://packagist.org/packages/alibabacloud/imm) | V20170906 | | [IndustryBrain](https://packagist.org/packages/alibabacloud/industrybrain) | V20180712 | | [Iot](https://packagist.org/packages/alibabacloud/iot) | V20180120 | diff --git a/SUPPORTED.md b/SUPPORTED.md index dea542e52..3ad82ca74 100644 --- a/SUPPORTED.md +++ b/SUPPORTED.md @@ -1,7 +1,7 @@ 简体中文 | [English](./SUPPORTED-EN.md) # 支持 -Alibaba Cloud SDK for PHP 已经支持 151 个产品共 171 个版本的快捷访问,列表如下: +Alibaba Cloud SDK for PHP 已经支持 152 个产品共 172 个版本的快捷访问,列表如下: | 产品 | 版本 | |----------|-------------| @@ -83,6 +83,7 @@ Alibaba Cloud SDK for PHP 已经支持 151 个产品共 171 个版本的快捷 | [ITaaS](https://packagist.org/packages/alibabacloud/itaas) | V20170505 | | [ImageSearch](https://packagist.org/packages/alibabacloud/imagesearch) | V20180120, V20190325 | | [Imageenhan](https://packagist.org/packages/alibabacloud/imageenhan) | V20190930 | +| [Imagerecog](https://packagist.org/packages/alibabacloud/imagerecog) | V20190930 | | [Imm](https://packagist.org/packages/alibabacloud/imm) | V20170906 | | [IndustryBrain](https://packagist.org/packages/alibabacloud/industrybrain) | V20180712 | | [Iot](https://packagist.org/packages/alibabacloud/iot) | V20180120 | diff --git a/composer.json b/composer.json index 2659dbd3a..e876b76ff 100644 --- a/composer.json +++ b/composer.json @@ -120,6 +120,7 @@ "alibabacloud/itaas": "self.version", "alibabacloud/imagesearch": "self.version", "alibabacloud/imageenhan": "self.version", + "alibabacloud/imagerecog": "self.version", "alibabacloud/imm": "self.version", "alibabacloud/industrybrain": "self.version", "alibabacloud/iot": "self.version", diff --git a/src/IdeHelper.php b/src/IdeHelper.php index a701f3933..6088960b6 100644 --- a/src/IdeHelper.php +++ b/src/IdeHelper.php @@ -85,6 +85,7 @@ * @method static ITaaS\ITaaS iTaaS() * @method static ImageSearch\ImageSearch imageSearch() * @method static Imageenhan\Imageenhan imageenhan() + * @method static Imagerecog\Imagerecog imagerecog() * @method static Imm\Imm imm() * @method static IndustryBrain\IndustryBrain industryBrain() * @method static Iot\Iot iot() diff --git a/src/Imagerecog/Imagerecog.php b/src/Imagerecog/Imagerecog.php new file mode 100644 index 000000000..8ca25b6b1 --- /dev/null +++ b/src/Imagerecog/Imagerecog.php @@ -0,0 +1,12 @@ + + +

+ +

Alibaba Cloud Imagerecog SDK for PHP

+ +If [Alibaba Cloud SDK for PHP][sdk] is installed, there is no need to install the product dependency package. This product dependency package is only part of the synchronization from [Alibaba Cloud SDK for PHP][sdk], and its namespace and usage are consistent with [Alibaba Cloud SDK for PHP][sdk]. + +If you don't care about file size, we recommend that you install [Alibaba Cloud SDK for PHP][sdk] and update it regularly so as to maintain the latest and most complete product support: +``` +composer require alibabacloud/sdk +``` + +The product can also be installed only: +> The version of this product is always synchronized with [Alibaba Cloud SDK for PHP][sdk] to ensure that it can switch with [Alibaba Cloud SDK for PHP][sdk] at any time without changing the business code, although the code between different versions of this product may not change. +``` +composer require alibabacloud/imagerecog +``` + +*** +Refer to document [Alibaba Cloud SDK for PHP][sdk] for more SDK usage. + +[sdk]: https://github.com/aliyun/openapi-sdk-php diff --git a/src/Imagerecog/README.md b/src/Imagerecog/README.md new file mode 100644 index 000000000..faac9586c --- /dev/null +++ b/src/Imagerecog/README.md @@ -0,0 +1,25 @@ + | [English](./README-EN.md) + +

+ +

+ +

Alibaba Cloud Imagerecog SDK for PHP

+ +Ѱװ [Alibaba Cloud SDK for PHP][sdk] 谲װƷƷֻǴ [Alibaba Cloud SDK for PHP][sdk] ͬһ֣ռ䡢÷ [Alibaba Cloud SDK for PHP][sdk] һ¡ + +ںļװ [Alibaba Cloud SDK for PHP][sdk] £Ա㱣¡ȫIJƷ֧֣ +``` +composer require alibabacloud/sdk +``` + +ҲɽװƷ +> Ʒİ汾ʼպ [Alibaba Cloud SDK for PHP][sdk] ͬԱ֤ڲıҵʱ [Alibaba Cloud SDK for PHP][sdk] ໥лܱƷͬ汾֮Ĵûб仯 +``` +composer require alibabacloud/imagerecog +``` + +*** + SDK ʹο [Alibaba Cloud SDK for PHP][sdk] ĵ + +[sdk]: https://github.com/aliyun/openapi-sdk-php diff --git a/src/Imagerecog/V20190930/ImagerecogApiResolver.php b/src/Imagerecog/V20190930/ImagerecogApiResolver.php new file mode 100644 index 000000000..392465358 --- /dev/null +++ b/src/Imagerecog/V20190930/ImagerecogApiResolver.php @@ -0,0 +1,103 @@ +data['Url'] = $value; + $this->options['form_params']['Url'] = $value; + + return $this; + } +} + +/** + * @method string getUrl() + * @method string getColorCount() + */ +class RecognizeImageColor extends Rpc +{ + + /** + * @param string $value + * + * @return $this + */ + public function withUrl($value) + { + $this->data['Url'] = $value; + $this->options['form_params']['Url'] = $value; + + return $this; + } + + /** + * @param string $value + * + * @return $this + */ + public function withColorCount($value) + { + $this->data['ColorCount'] = $value; + $this->options['form_params']['ColorCount'] = $value; + + return $this; + } +} + +/** + * @method string getUrl() + */ +class RecognizeImageStyle extends Rpc +{ + + /** + * @param string $value + * + * @return $this + */ + public function withUrl($value) + { + $this->data['Url'] = $value; + $this->options['form_params']['Url'] = $value; + + return $this; + } +} diff --git a/src/Imagerecog/composer.json b/src/Imagerecog/composer.json new file mode 100644 index 000000000..0381c4cc8 --- /dev/null +++ b/src/Imagerecog/composer.json @@ -0,0 +1,43 @@ +{ + "name": "alibabacloud/imagerecog", + "homepage": "https://www.alibabacloud.com/", + "description": "Alibaba Cloud Imagerecog SDK for PHP", + "keywords": [ + "imagerecog", + "sdk", + "cloud", + "aliyun", + "alibaba", + "library", + "alibabacloud" + ], + "type": "library", + "license": "Apache-2.0", + "support": { + "source": "https://github.com/alibabacloud-sdk-php/imagerecog", + "issues": "https://github.com/alibabacloud-sdk-php/imagerecog/issues" + }, + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com", + "homepage": "http://www.alibabacloud.com" + } + ], + "require": { + "php": ">=5.5", + "alibabacloud/client": "^1.5" + }, + "autoload": { + "psr-4": { + "AlibabaCloud\\Imagerecog\\": "" + } + }, + "config": { + "sort-packages": true, + "preferred-install": "dist", + "optimize-autoloader": true + }, + "prefer-stable": true, + "minimum-stability": "dev" +} diff --git a/src/Imagerecog/endpoints.json b/src/Imagerecog/endpoints.json new file mode 100644 index 000000000..81c9de75d --- /dev/null +++ b/src/Imagerecog/endpoints.json @@ -0,0 +1 @@ +{"endpoint_map":{},"endpoint_regional":"regional","standard":{"cn-shanghai":"imagerecog.cn-shanghai.aliyuncs.com"},"regions":["cn-shanghai"],"endpoint_health":[]} diff --git a/src/Release.php b/src/Release.php index 21c16f396..d728bd890 100644 --- a/src/Release.php +++ b/src/Release.php @@ -16,7 +16,7 @@ class Release /** * Version of the SDK */ - const VERSION = '1.7.172'; + const VERSION = '1.7.173'; /** * @param Event $event