summaryrefslogtreecommitdiff
path: root/data/en_us/alimt
diff options
context:
space:
mode:
authorZhineng Li <[email protected]>2026-02-13 10:54:11 +0800
committerZhineng Li <[email protected]>2026-02-13 10:54:11 +0800
commit7347bac4ab7e136157fc94777e6cf87ef9e08599 (patch)
tree0dec367dac6e152161a6f7cc0dba6ebbef1f34a2 /data/en_us/alimt
downloadacs-metadata-full-7347bac4ab7e136157fc94777e6cf87ef9e08599.tar.gz
acs-metadata-full-7347bac4ab7e136157fc94777e6cf87ef9e08599.zip
Diffstat (limited to 'data/en_us/alimt')
-rw-r--r--data/en_us/alimt/2018-08-07/api-docs.php528
-rw-r--r--data/en_us/alimt/2018-10-12/api-docs.php4634
-rw-r--r--data/en_us/alimt/2019-01-02/api-docs.php743
-rw-r--r--data/en_us/alimt/2019-01-07/api-docs.php612
4 files changed, 6517 insertions, 0 deletions
diff --git a/data/en_us/alimt/2018-08-07/api-docs.php b/data/en_us/alimt/2018-08-07/api-docs.php
new file mode 100644
index 0000000..dd6b3f1
--- /dev/null
+++ b/data/en_us/alimt/2018-08-07/api-docs.php
@@ -0,0 +1,528 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'RPC',
+ 'product' => 'alimt',
+ 'version' => '2018-08-07',
+ ],
+ 'directories' => [
+ [
+ 'id' => 58009,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'MachineTranslateECommerce',
+ 'MachineTranslateGeneral',
+ ],
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [],
+ ],
+ 'apis' => [
+ 'MachineTranslateECommerce' => [
+ 'summary' => '机器专业翻译',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'high',
+ 'chargeType' => 'paid',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'SourceText',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'ContentFormat',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'type' => 'string',
+ ],
+ 'Success' => [
+ 'type' => 'boolean',
+ ],
+ 'TranslateText' => [
+ 'type' => 'string',
+ ],
+ 'ResultCode' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'Message' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => '10001',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10002',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10003',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10004',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10005',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10006',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10007',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10008',
+ 'errorMessage' => 'The specified string is too long.',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => '19999',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => null,
+ ],
+ 'MachineTranslateGeneral' => [
+ 'summary' => '机器通用翻译',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'high',
+ 'chargeType' => 'paid',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'SourceText',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'ContentFormat',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'type' => 'string',
+ ],
+ 'Success' => [
+ 'type' => 'boolean',
+ ],
+ 'TranslateText' => [
+ 'type' => 'string',
+ ],
+ 'ResultCode' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'Message' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => '10001',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10002',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10003',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10004',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10005',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10006',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10007',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10008',
+ 'errorMessage' => 'The specified string is too long.',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => '19999',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => null,
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'me-central-1',
+ 'endpoint' => 'mt.me-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-2-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-south-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-2',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-3',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-finance-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-finance-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-gov-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-nu16-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-chengdu',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-edge-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-fujian',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-haidian-cm12-c01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-bj-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-finance',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-prod-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-2',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-3',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-test-306',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong-finance-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-huhehaote',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-north-2-gov-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao-nebula',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-et15-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-et2-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-inner',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-internal-test-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-finance-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-inner',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-st4-d01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-su18-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wuhan',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-yushanfang',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangbei-na61-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou-na62-a01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhengzhou-nebula-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1-oxs',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-east-1',
+ 'endpoint' => 'alimt.me-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'rus-west-1-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-east-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-west-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ ],
+];
diff --git a/data/en_us/alimt/2018-10-12/api-docs.php b/data/en_us/alimt/2018-10-12/api-docs.php
new file mode 100644
index 0000000..9a54c4d
--- /dev/null
+++ b/data/en_us/alimt/2018-10-12/api-docs.php
@@ -0,0 +1,4634 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'RPC',
+ 'product' => 'alimt',
+ 'version' => '2018-10-12',
+ ],
+ 'directories' => [
+ [
+ 'id' => 87656,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'TranslateGeneral',
+ 'Translate',
+ 'TranslateECommerce',
+ 'GetBatchTranslate',
+ 'CreateAsyncTranslate',
+ 'GetAsyncTranslate',
+ 'GetDetectLanguage',
+ ],
+ ],
+ [
+ 'id' => 87669,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ [
+ 'id' => 184530,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'TranslateImage',
+ 'TranslateImageBatch',
+ 'GetTranslateImageBatchResult',
+ ],
+ ],
+ [
+ 'id' => 184531,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateDocTranslateTask',
+ 'GetDocTranslateTask',
+ ],
+ ],
+ 'TranslateCertificate',
+ ],
+ ],
+ [
+ 'id' => 87651,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'GetImageTranslate',
+ 'CreateImageTranslateTask',
+ 'GetImageTranslateTask',
+ 'GetImageDiagnose',
+ 'GetTitleDiagnose',
+ 'GetTitleGenerate',
+ 'GetTitleIntelligence',
+ ],
+ ],
+ [
+ 'id' => 87654,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'OpenAlimtService',
+ 'GetTranslateReport',
+ ],
+ ],
+ [
+ 'id' => 221262,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'TranslateSearch',
+ ],
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [],
+ ],
+ 'apis' => [
+ 'TranslateGeneral' => [
+ 'summary' => '文本通用翻译',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ [
+ 'BearerToken' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'FormatType',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'text',
+ ],
+ ],
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'en',
+ ],
+ ],
+ [
+ 'name' => 'SourceText',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'Scene',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'general',
+ 'default' => 'general',
+ ],
+ ],
+ [
+ 'name' => 'Context',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'context信息',
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{\\"appName\\":\\"alynx\\"}',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Translated' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Hello',
+ ],
+ 'WordCount' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '10',
+ ],
+ 'DetectedLanguage' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => '10001',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10002',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10003',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10004',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10005',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10006',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10007',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10008',
+ 'errorMessage' => 'The specified string is too long.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10009',
+ 'errorMessage' => '子账号没有权限',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10010',
+ 'errorMessage' => '账号没有开通服务',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10011',
+ 'errorMessage' => '子账号服务失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10012',
+ 'errorMessage' => '翻译服务调用失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10013',
+ 'errorMessage' => '账号服务没有开通或者欠费',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => '19999',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\",\\n \\"Data\\": {\\n \\"Translated\\": \\"Hello\\",\\n \\"WordCount\\": \\"10\\",\\n \\"DetectedLanguage\\": \\"zh\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<TranslateGeneralResponse>\\n <RequestId>14E447CA-B93B-4526-ACD7-42AE13CC2AF6</RequestId>\\n <Data>\\n <Translated>Hello</Translated>\\n </Data>\\n <Code>200</Code>\\n</TranslateGeneralResponse>","errorExample":""}]',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'Translate' => [
+ 'summary' => '专业文本翻译',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ [
+ 'BearerToken' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'FormatType',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'text',
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'en',
+ ],
+ ],
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'SourceText',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '',
+ 'maxLength' => 256000,
+ ],
+ ],
+ [
+ 'name' => 'Scene',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'title',
+ ],
+ ],
+ [
+ 'name' => 'Context',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '新增context',
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{\\"appName\\":\\"alynx\\"}',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Translated' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Hello',
+ ],
+ 'WordCount' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '10',
+ ],
+ 'DetectedLanguage' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => '10001',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10002',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10003',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10004',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10005',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10006',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10007',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10008',
+ 'errorMessage' => 'The specified string is too long.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10009',
+ 'errorMessage' => '子账号没有权限',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10010',
+ 'errorMessage' => '账号没有开通服务',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10011',
+ 'errorMessage' => '子账号服务失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10012',
+ 'errorMessage' => '翻译服务调用失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10013',
+ 'errorMessage' => '账号服务没有开通或者欠费',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => '19999',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\",\\n \\"Data\\": {\\n \\"Translated\\": \\"Hello\\",\\n \\"WordCount\\": \\"10\\",\\n \\"DetectedLanguage\\": \\"zh\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>86D18195-D89C-4C8C-9DC4-5FCE789CE6D5</RequestId>\\n<Data>\\n <Translated>Hello</Translated>\\n</Data>\\n<Code>200</Code>","errorExample":""}]',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'TranslateECommerce' => [
+ 'summary' => 'TranslateECommerce',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ [
+ 'BearerToken' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => true,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'FormatType',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'enumValueTitles' => [
+ 'html' => 'html',
+ 'text' => 'text',
+ ],
+ 'example' => 'text',
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'en',
+ ],
+ ],
+ [
+ 'name' => 'SourceText',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'Hello',
+ ],
+ ],
+ [
+ 'name' => 'Scene',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'enumValueTitles' => [
+ 'medical' => 'medical',
+ 'social' => 'social',
+ 'description' => 'description',
+ 'communication' => 'communication',
+ 'title' => 'title',
+ 'finance' => 'finance',
+ ],
+ 'example' => 'social',
+ ],
+ ],
+ [
+ 'name' => 'Context',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'context信息',
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'context信息',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'An error occurred while translating.',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'CC93BB5C-EAB5-579B-AA44-F61528F48FF8',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Translated' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '',
+ ],
+ 'WordCount' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '10',
+ ],
+ 'DetectedLanguage' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => '10001',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10002',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10003',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10004',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10005',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10006',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10007',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10008',
+ 'errorMessage' => 'The specified string is too long.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10009',
+ 'errorMessage' => '子账号没有权限',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10010',
+ 'errorMessage' => '账号没有开通服务',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10011',
+ 'errorMessage' => '子账号服务失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10012',
+ 'errorMessage' => '翻译服务调用失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10013',
+ 'errorMessage' => '账号服务没有开通或者欠费',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => '19999',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'substitutions' => [
+ 'alimt::2018-10-12::Translate',
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"An error occurred while translating.\\",\\n \\"RequestId\\": \\"CC93BB5C-EAB5-579B-AA44-F61528F48FF8\\",\\n \\"Data\\": {\\n \\"Translated\\": \\"你好\\",\\n \\"WordCount\\": \\"10\\",\\n \\"DetectedLanguage\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetBatchTranslate' => [
+ 'summary' => '批量文本翻译',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'high',
+ 'chargeType' => 'paid',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'FormatType',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'text ',
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'en',
+ ],
+ ],
+ [
+ 'name' => 'Scene',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'general',
+ ],
+ ],
+ [
+ 'name' => 'ApiType',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'translate_standard',
+ ],
+ ],
+ [
+ 'name' => 'SourceText',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '{"11":"hello boy","12":"go home","13":"we can"}',
+ 'isFileTransferUrl' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5',
+ ],
+ 'TranslatedList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'example' => '',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => 'System.RequestTimeOut',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.Error',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.UrlDecodingError',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.ParameterError',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageNotSupported',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageDetectError',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateError',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.StringTooLong',
+ 'errorMessage' => 'The maximum length of the specified string is exceeded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.SubNotPermission',
+ 'errorMessage' => 'The sub account is not authorized to perform the operation.',
+ ],
+ [
+ 'errorCode' => 'System.subNotPermission',
+ 'errorMessage' => 'The sub-account is not authorized to perform the operation.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivated',
+ 'errorMessage' => 'The account has not activated the service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.SubServiceFailed',
+ 'errorMessage' => 'Sub-account service failed.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateServiceCallFailed',
+ 'errorMessage' => 'Failed to call the translation service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivatedOrInArrears',
+ 'errorMessage' => 'The service is not activated or the account has an outstanding balance.',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => 'System.unknownError',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ [
+ 'errorCode' => 'System.UnknownError',
+ 'errorMessage' => 'An unknown system error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\",\\n \\"TranslatedList\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<Message>success</Message>\\n<RequestId>86D18195-D89C-4C8C-9DC4-5FCE789CE6D5</RequestId>\\n<TranslatedList>[{\\"code\\":\\"200\\",\\"wordCount\\":\\"9\\",\\"index\\":\\"11\\",\\"translated\\":\\"你好男孩\\"},{\\"code\\":\\"200\\",\\"wordCount\\":\\"7\\",\\"index\\":\\"12\\",\\"translated\\":\\"回家\\"},{\\"code\\":\\"200\\",\\"wordCount\\":\\"6\\",\\"index\\":\\"13\\",\\"translated\\":\\"我们可以\\"}]</TranslatedList>\\n<Code>200</Code>","errorExample":""}]',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateAsyncTranslate' => [
+ 'summary' => '大文本异步翻译,支持5000-50000字翻译',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ [
+ 'BearerToken' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'en',
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'SourceText',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'Opinion: We have finally gotten some relief at the pump. But it may not last long',
+ ],
+ ],
+ [
+ 'name' => 'Scene',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'general',
+ ],
+ ],
+ [
+ 'name' => 'FormatType',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'text',
+ ],
+ ],
+ [
+ 'name' => 'ApiType',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'translate_standard',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D',
+ ],
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Data' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'JobId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '98bbb007-71bb-448b-bab0-2695ce8f8599',
+ ],
+ 'Status' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'ready',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => '10001',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ 103 => [
+ [
+ 'errorCode' => '10003',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10004',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10005',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10006',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10007',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10008',
+ 'errorMessage' => 'The specified string is too long.',
+ ],
+ ],
+ 400 => [
+ [
+ 'errorCode' => '10010',
+ 'errorMessage' => 'You have not activated this service.',
+ ],
+ [
+ 'errorCode' => '10013',
+ 'errorMessage' => 'You have not activated the account service or the account service has overdue bills.',
+ ],
+ [
+ 'errorCode' => '10021',
+ 'errorMessage' => 'The parameter is invalid.',
+ ],
+ [
+ 'errorCode' => '10026',
+ 'errorMessage' => 'Failed to translate the certificate. Please check the parameters.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => '10009',
+ 'errorMessage' => 'The RAM user is not authorized to perform this operation.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10025',
+ 'errorMessage' => 'The specified task does not exist.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => '10002',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ [
+ 'errorCode' => '10011',
+ 'errorMessage' => 'An error occurred while invoking the RAM user service.',
+ ],
+ [
+ 'errorCode' => '10012',
+ 'errorMessage' => 'An error occurred while calling the translation service.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"JobId\\": \\"98bbb007-71bb-448b-bab0-2695ce8f8599\\",\\n \\"Status\\": \\"ready\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetAsyncTranslate' => [
+ 'summary' => '大文本异步翻译,支持5000-50000字翻译',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'JobId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '77056ab7-7be1-4c2a-91a1-f20f63894048',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D',
+ ],
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'ok',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'ready',
+ ],
+ 'TranslatedText' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'hello',
+ ],
+ 'WordCount' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '2',
+ ],
+ 'DetectedLanguage' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 109 => [
+ [
+ 'errorCode' => 'System.SubNotPermission',
+ 'errorMessage' => 'The sub account is not authorized to perform the operation.',
+ ],
+ ],
+ 400 => [
+ [
+ 'errorCode' => 'Parameter.SourceLangError',
+ 'errorMessage' => 'Source languages are not supported.',
+ ],
+ [
+ 'errorCode' => 'Parameter.TargetLangError',
+ 'errorMessage' => 'Target languages are not supported.',
+ ],
+ [
+ 'errorCode' => 'System.AccountNotActivated',
+ 'errorMessage' => 'The account has not activated the service.',
+ ],
+ [
+ 'errorCode' => 'System.AccountNotActivatedOrInArrears',
+ 'errorMessage' => 'The service is not activated or the account has an outstanding balance.',
+ ],
+ [
+ 'errorCode' => 'System.LanguageNotSupported',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ [
+ 'errorCode' => 'System.ParameterError',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ [
+ 'errorCode' => 'System.StringTooLong',
+ 'errorMessage' => 'The maximum length of the specified string is exceeded.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'System.subNotPermission',
+ 'errorMessage' => 'The sub-account is not authorized to perform the operation.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'System.Error',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ [
+ 'errorCode' => 'System.LanguageDetectError',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ [
+ 'errorCode' => 'System.RequestTimeOut',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ [
+ 'errorCode' => 'System.SubServiceFailed',
+ 'errorMessage' => 'Sub-account service failed.',
+ ],
+ [
+ 'errorCode' => 'System.TranslateError',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ [
+ 'errorCode' => 'System.TranslateServiceCallFailed',
+ 'errorMessage' => 'Failed to call the translation service.',
+ ],
+ [
+ 'errorCode' => 'System.unknownError',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ [
+ 'errorCode' => 'System.UrlDecodingError',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"Data\\": {\\n \\"Status\\": \\"ready\\",\\n \\"TranslatedText\\": \\"hello\\",\\n \\"WordCount\\": \\"2\\",\\n \\"DetectedLanguage\\": \\"zh\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetDetectLanguage' => [
+ 'summary' => '语种识别',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'SourceText',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DetectedLanguage' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'zh',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '0C5EC1EC-1A06-4D60-97E6-4D41350945E4',
+ ],
+ 'LanguageProbabilities' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => '10001',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10002',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10003',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10004',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10005',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10006',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10007',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10008',
+ 'errorMessage' => 'The specified string is too long.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10009',
+ 'errorMessage' => '子账号没有权限',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10010',
+ 'errorMessage' => '账号没有开通服务',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10011',
+ 'errorMessage' => '子账号服务失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10012',
+ 'errorMessage' => '翻译服务调用失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10013',
+ 'errorMessage' => '账号服务没有开通或者欠费',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => '19999',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ 400 => [
+ [
+ 'errorCode' => 'System.ParameterError',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ 503 => [
+ [
+ 'errorCode' => 'System.Error',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ [
+ 'errorCode' => 'Internal.Error',
+ 'errorMessage' => 'The internal service connection timeout, please try again later.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"DetectedLanguage\\": \\"zh\\",\\n \\"RequestId\\": \\"0C5EC1EC-1A06-4D60-97E6-4D41350945E4\\",\\n \\"LanguageProbabilities\\": \\"\\"\\n}","errorExample":""},{"type":"xml","example":"<GetDetectLanguageResponse>\\n <RequestId>0C5EC1EC-1A06-4D60-97E6-4D41350945E4</RequestId>\\n <DetectedLanguage>zh</DetectedLanguage>\\n</GetDetectLanguageResponse>","errorExample":""}]',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'TranslateImage' => [
+ 'summary' => '公有云图片翻译产品API',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ [
+ 'BearerToken' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ImageUrl',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'https://example.com/example.jpg',
+ ],
+ ],
+ [
+ 'name' => 'ImageBase64',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/9j/4...H/9k=',
+ ],
+ ],
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'en',
+ ],
+ ],
+ [
+ 'name' => 'Field',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [],
+ 'example' => 'general',
+ ],
+ ],
+ [
+ 'name' => 'Ext',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"needEditorData": "false", "ignoreEntityRecognize": "true"}',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'D774D33D-F1CB-5A2C-A787-E0A2179239CE',
+ ],
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Error Message',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'InPaintingUrl' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'https://example.com/example.jpg',
+ ],
+ 'TemplateJson' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Editor Template Json String',
+ ],
+ 'FinalImageUrl' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'https://example.com/example.jpg',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'Parameter.SourceLangError',
+ 'errorMessage' => 'Source languages are not supported.',
+ ],
+ [
+ 'errorCode' => 'Parameter.TargetLangError',
+ 'errorMessage' => 'Target languages are not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.subNotPermission',
+ 'errorMessage' => 'The sub-account is not authorized to perform the operation.',
+ ],
+ [
+ 'errorCode' => 'System.AccountNotActivated',
+ 'errorMessage' => 'The account has not activated the service.',
+ ],
+ ],
+ 406 => [
+ [
+ 'errorCode' => 'System.ParameterError',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ [
+ 'errorCode' => 'Parameter.ImageUrlError',
+ 'errorMessage' => 'Failed to obtain the image from the URL.',
+ ],
+ [
+ 'errorCode' => 'Parameter.ImageSizeError',
+ 'errorMessage' => 'Image size should be within 15px to 8192px.',
+ ],
+ [
+ 'errorCode' => 'Parameter.ImageFormatError',
+ 'errorMessage' => 'The image format is not supported.',
+ ],
+ [
+ 'errorCode' => 'Parameter.ImageFileSizeError',
+ 'errorMessage' => 'The image file size should be within 10 MB.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'System.unknownError',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ [
+ 'errorCode' => 'ImageTranslate.TranslationError',
+ 'errorMessage' => 'Image translation error.',
+ ],
+ [
+ 'errorCode' => 'ImageTranslate.FusionError',
+ 'errorMessage' => 'Image fusion error.',
+ ],
+ [
+ 'errorCode' => 'ImageTranslate.EraseError',
+ 'errorMessage' => 'Image erasing error.',
+ ],
+ [
+ 'errorCode' => 'ImageTranslate.TextTranslationError',
+ 'errorMessage' => 'Text translation error.',
+ ],
+ [
+ 'errorCode' => 'ImageTranslate.TextToParagraphError',
+ 'errorMessage' => 'Text to paragraph error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"D774D33D-F1CB-5A2C-A787-E0A2179239CE\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"Error Message\\",\\n \\"Data\\": {\\n \\"InPaintingUrl\\": \\"https://example.com/example.jpg\\",\\n \\"TemplateJson\\": \\"Editor Template Json String\\",\\n \\"FinalImageUrl\\": \\"https://example.com/example.jpg\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<TranslateImageResponse>\\n <code>200</code>\\n <data>\\n <finalImageUrl>https://example.com/example.jpg</finalImageUrl>\\n </data>\\n <requestId>D774D33D-F1CB-5A2C-A787-E0A2179239CE</requestId>\\n</TranslateImageResponse>","errorExample":""}]',
+ ],
+ 'TranslateImageBatch' => [
+ 'summary' => '批量图片翻译接口',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ImageUrls',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'https://example.com/1.jpg,https://example.com/2.jpg,https://example.com/3.jpg',
+ ],
+ ],
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'en',
+ ],
+ ],
+ [
+ 'name' => 'Ext',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"needEditorData": "false", "ignoreEntityRecognize": "true"}',
+ ],
+ ],
+ [
+ 'name' => 'CustomTaskId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'my_awesome_task_1',
+ ],
+ ],
+ [
+ 'name' => 'Field',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'general',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'D774D33D-F1CB-5A2C-A787-E0A2179239CE',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'TaskId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'EEA28E6D-4828-5031-BD8C-8FF1B3216842',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => 'System.RequestTimeOut',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.Error',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.UrlDecodingError',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.ParameterError',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageNotSupported',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageDetectError',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateError',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.StringTooLong',
+ 'errorMessage' => 'The maximum length of the specified string is exceeded.',
+ ],
+ ],
+ 110 => [
+ [
+ 'errorCode' => 'System.AccountNotActivated',
+ 'errorMessage' => 'The account has not activated the service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.SubServiceFailed',
+ 'errorMessage' => 'Sub-account service failed.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateServiceCallFailed',
+ 'errorMessage' => 'Failed to call the translation service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivatedOrInArrears',
+ 'errorMessage' => 'The service is not activated or the account has an outstanding balance.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"D774D33D-F1CB-5A2C-A787-E0A2179239CE\\",\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"TaskId\\": \\"EEA28E6D-4828-5031-BD8C-8FF1B3216842\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<TranslateImageBatchResponse>\\n <RequestId>D774D33D-F1CB-5A2C-A787-E0A2179239CE</RequestId>\\n <Message>OK</Message>\\n <Code>200</Code>\\n <Data>\\n <TaskId>EEA28E6D-4828-5031-BD8C-8FF1B3216842</TaskId>\\n </Data>\\n</TranslateImageBatchResponse>","errorExample":""}]',
+ ],
+ 'GetTranslateImageBatchResult' => [
+ 'summary' => '获取图片批量翻译结果',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TaskId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'EEA28E6D-4828-5031-BD8C-8FF1B3216842',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'DACD263C-C068-5116-83EC-117245AA35CF',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'description' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'InPaintingUrl' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'https://example.com/example.jpg',
+ ],
+ 'FinalImageUrl' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'https://example.com/example.jpg',
+ ],
+ 'TemplateJson' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '{"TemplateJson": "Editor Template Json String "}',
+ ],
+ 'SourceImageUrl' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'https://example.com/example.jpg',
+ ],
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'OK',
+ ],
+ 'Success' => [
+ 'description' => '',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ ],
+ 'Status' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'finished',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => 'System.RequestTimeOut',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.Error',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.UrlDecodingError',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.ParameterError',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageNotSupported',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageDetectError',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateError',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.StringTooLong',
+ 'errorMessage' => 'The maximum length of the specified string is exceeded.',
+ ],
+ ],
+ 110 => [
+ [
+ 'errorCode' => 'System.AccountNotActivated',
+ 'errorMessage' => 'The account has not activated the service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.SubServiceFailed',
+ 'errorMessage' => 'Sub-account service failed.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateServiceCallFailed',
+ 'errorMessage' => 'Failed to call the translation service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivatedOrInArrears',
+ 'errorMessage' => 'The service is not activated or the account has an outstanding balance.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"DACD263C-C068-5116-83EC-117245AA35CF\\",\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"InPaintingUrl\\": \\"https://example.com/example.jpg\\",\\n \\"FinalImageUrl\\": \\"https://example.com/example.jpg\\",\\n \\"TemplateJson\\": \\"{\\\\\\"TemplateJson\\\\\\": \\\\\\"Editor Template Json String\\\\t\\\\\\"}\\",\\n \\"SourceImageUrl\\": \\"https://example.com/example.jpg\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Success\\": true\\n }\\n ],\\n \\"Status\\": \\"finished\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetTranslateImageBatchResultResponse>\\n <Code>200</Code>\\n <Message>OK</Message>\\n <RequestId>DACD263C-C068-5116-83EC-117245AA35CF</RequestId>\\n <Data>\\n <Result>\\n <InPaintingUrl>https://example.com/example.jpg</InPaintingUrl>\\n <FinalImageUrl>https://example.com/example.jpg</FinalImageUrl>\\n <TemplateJson>{\\"TemplateJson\\": \\"Editor Template Json String\\t\\"}</TemplateJson>\\n <SourceImageUrl>https://example.com/example.jpg</SourceImageUrl>\\n <Code>200</Code>\\n <Message>OK</Message>\\n <Success>true</Success>\\n </Result>\\n <Status>finished</Status>\\n </Data>\\n</GetTranslateImageBatchResultResponse>","errorExample":""}]',
+ ],
+ 'CreateDocTranslateTask' => [
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'en',
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'FileUrl',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'http://fileUrl',
+ 'isFileTransferUrl' => true,
+ ],
+ ],
+ [
+ 'name' => 'Scene',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'general',
+ 'default' => 'general',
+ ],
+ ],
+ [
+ 'name' => 'CallbackUrl',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'http://callbackUrl',
+ ],
+ ],
+ [
+ 'name' => 'ClientToken',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'token',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'ready',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'D3920BC3-A395-4CAD-9E84-7C39EB07507B',
+ ],
+ 'TaskId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '0586df512c8b4bb382d7d9a6a01b5854',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 109 => [
+ [
+ 'errorCode' => '10009',
+ 'errorMessage' => '子账号没有权限',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10010',
+ 'errorMessage' => '账号没有开通服务',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10011',
+ 'errorMessage' => '子账号服务失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10012',
+ 'errorMessage' => '翻译服务调用失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10013',
+ 'errorMessage' => '账号服务没有开通或者欠费',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => '19999',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ 400 => [
+ [
+ 'errorCode' => '10021',
+ 'errorMessage' => 'The parameter is invalid.',
+ ],
+ [
+ 'errorCode' => '10022',
+ 'errorMessage' => 'The parameter fileUrl is invalid.',
+ ],
+ [
+ 'errorCode' => '10023',
+ 'errorMessage' => 'The parameter fileUrl is not accessible.',
+ ],
+ [
+ 'errorCode' => '10024',
+ 'errorMessage' => 'The parameter callbackUrl is invalid.',
+ ],
+ [
+ 'errorCode' => '10031',
+ 'errorMessage' => 'The specified file type is invalid.',
+ ],
+ [
+ 'errorCode' => 'InvalidAccountStatus',
+ 'errorMessage' => 'The Machine Translation service has not been activated.',
+ ],
+ [
+ 'errorCode' => 'RepeatInvoke',
+ 'errorMessage' => 'Repeated calls.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => '10029',
+ 'errorMessage' => 'The number of calls per day exceeds the limit.',
+ ],
+ ],
+ 429 => [
+ [
+ 'errorCode' => 'REQUESTS.OVER.LIMIT',
+ 'errorMessage' => 'The request is too frequent, please try again later.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": \\"ready\\",\\n \\"RequestId\\": \\"D3920BC3-A395-4CAD-9E84-7C39EB07507B\\",\\n \\"TaskId\\": \\"0586df512c8b4bb382d7d9a6a01b5854\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateDocTranslateTaskResponse>\\n <requestId>D3920BC3-A395-4CAD-9E84-7C39EB07507B</requestId>\\n <taskId>0586df512c8b4bb382d7d9a6a01b5854</taskId>\\n <status>ready</status>\\n</CreateDocTranslateTaskResponse>","errorExample":""}]',
+ 'title' => 'CreateDocTranslateTask',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetDocTranslateTask' => [
+ 'summary' => '获取文档翻译任务',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TaskId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '0586df512c8b4bb382d7d9a6a01b5854',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'translated',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '12952E92-FDF3-4D3C-88E3-242D72BA7150',
+ ],
+ 'TranslateFileUrl' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'http://translateFileUrl',
+ ],
+ 'TranslateErrorCode' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Error',
+ ],
+ 'PageCount' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ 'TaskId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '0586df512c8b4bb382d7d9a6a01b5854',
+ ],
+ 'TranslateErrorMessage' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Fail to get the page number of document.',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 109 => [
+ [
+ 'errorCode' => '10009',
+ 'errorMessage' => '子账号没有权限',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10010',
+ 'errorMessage' => '账号没有开通服务',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10011',
+ 'errorMessage' => '子账号服务失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10012',
+ 'errorMessage' => '翻译服务调用失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10013',
+ 'errorMessage' => '账号服务没有开通或者欠费',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => '19999',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ 400 => [
+ [
+ 'errorCode' => '10021',
+ 'errorMessage' => 'The parameter is invalid.',
+ ],
+ [
+ 'errorCode' => 'InvalidAccountStatus',
+ 'errorMessage' => 'The Machine Translation service has not been activated.',
+ ],
+ ],
+ 404 => [
+ [
+ 'errorCode' => '10025',
+ 'errorMessage' => 'The specified task does not exist.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": \\"translated\\",\\n \\"RequestId\\": \\"12952E92-FDF3-4D3C-88E3-242D72BA7150\\",\\n \\"TranslateFileUrl\\": \\"http://translateFileUrl\\",\\n \\"TranslateErrorCode\\": \\"Error\\",\\n \\"PageCount\\": 20,\\n \\"TaskId\\": \\"0586df512c8b4bb382d7d9a6a01b5854\\",\\n \\"TranslateErrorMessage\\": \\"Fail to get the page number of document.\\"\\n}","errorExample":""},{"type":"xml","example":"<GetDocTranslateTaskResponse>\\n <Status>translated</Status>\\n <TranslateErrorMessage>Fail to get the page number of document.</TranslateErrorMessage>\\n <TaskId>0586df512c8b4bb382d7d9a6a01b5854</TaskId>\\n <RequestId>12952E92-FDF3-4D3C-88E3-242D72BA7150</RequestId>\\n <PageCount>20</PageCount>\\n <TranslateFileUrl>http://translateFileUrl</TranslateFileUrl>\\n <TranslateErrorCode>Error</TranslateErrorCode>\\n</GetDocTranslateTaskResponse>","errorExample":""}]',
+ 'title' => 'GetDocTranslateTask',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'TranslateCertificate' => [
+ 'summary' => 'TranslateCertificate',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ [
+ 'BearerToken' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'en',
+ ],
+ ],
+ [
+ 'name' => 'ImageUrl',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'http://imageurl',
+ 'isFileTransferUrl' => true,
+ ],
+ ],
+ [
+ 'name' => 'CertificateType',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'driving_license',
+ ],
+ ],
+ [
+ 'name' => 'ResultType',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'text',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '6640DE48-201C-4110-AE87-FB8FA34412B9',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'TranslatedValues' => [
+ 'description' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'KeyTranslation' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'name',
+ ],
+ 'Key' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '',
+ ],
+ 'Value' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '',
+ ],
+ 'ValueTranslation' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Solemn',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => '10026',
+ 'errorMessage' => 'Failed to translate the certificate. Please check the parameters.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'InvalidAccountStatus.ServiceUnavailable',
+ 'errorMessage' => 'The service has not been activated.',
+ ],
+ ],
+ 503 => [
+ [
+ 'errorCode' => 'ServiceUnavailable',
+ 'errorMessage' => 'An error occurred while processing your request.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"6640DE48-201C-4110-AE87-FB8FA34412B9\\",\\n \\"Data\\": {\\n \\"TranslatedValues\\": [\\n {\\n \\"KeyTranslation\\": \\"name\\",\\n \\"Key\\": \\"姓名\\",\\n \\"Value\\": \\"庄严\\",\\n \\"ValueTranslation\\": \\"Solemn\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<TranslateCertificateResponse>\\n <RequestId>BA8DAAE0-1985-4B19-86BA-97C1753FCF3A</RequestId>\\n <Data>\\n <TranslatedValues>\\n <ValueTranslation>Huang Jia</ValueTranslation>\\n <KeyTranslation>name</KeyTranslation>\\n <Value>黄佳</Value>\\n <Key>姓名</Key>\\n </TranslatedValues>\\n <TranslatedValues>\\n <ValueTranslation>2019-07-05</ValueTranslation>\\n <KeyTranslation>effective start date</KeyTranslation>\\n <Value>2019-07-05</Value>\\n <Key>有效起始日期</Key>\\n </TranslatedValues>\\n <TranslatedValues>\\n <ValueTranslation>331021190</ValueTranslation>\\n <KeyTranslation>certificate number</KeyTranslation>\\n <Value>331021190</Value>\\n <Key>证号</Key>\\n </TranslatedValues>\\n <TranslatedValues>\\n <ValueTranslation>1999-11-04</ValueTranslation>\\n <KeyTranslation>date of birth</KeyTranslation>\\n <Value>1999-11-04</Value>\\n <Key>出生日期</Key>\\n </TranslatedValues>\\n <TranslatedValues>\\n <ValueTranslation>No. 3 Damaiyu Street, Yuhuan county, Zhejiang province</ValueTranslation>\\n <KeyTranslation>address</KeyTranslation>\\n <Value>浙江省玉环县大麦屿街道3号</Value>\\n <Key>住址</Key>\\n </TranslatedValues>\\n <TranslatedValues>\\n <ValueTranslation>Fujian Ningde, traffic police division, public security bureau</ValueTranslation>\\n <KeyTranslation>license issuing unit</KeyTranslation>\\n <Value>福建省宁德市公安局交通警察支队</Value>\\n <Key>发证单位</Key>\\n </TranslatedValues>\\n <TranslatedValues>\\n <ValueTranslation>Chinese</ValueTranslation>\\n <KeyTranslation>nationality</KeyTranslation>\\n <Value>中国</Value>\\n <Key>国籍</Key>\\n </TranslatedValues>\\n <TranslatedValues>\\n <ValueTranslation>2019-07-05</ValueTranslation>\\n <KeyTranslation>date of first issue</KeyTranslation>\\n <Value>2019-07-05</Value>\\n <Key>初次领证日期</Key>\\n </TranslatedValues>\\n <TranslatedValues>\\n <ValueTranslation>C1</ValueTranslation>\\n <KeyTranslation>class</KeyTranslation>\\n <Value>C1</Value>\\n <Key>准驾车型</Key>\\n </TranslatedValues>\\n <TranslatedValues>\\n <ValueTranslation>Women\'s</ValueTranslation>\\n <KeyTranslation>sex</KeyTranslation>\\n <Value>女</Value>\\n <Key>性别</Key>\\n </TranslatedValues>\\n <TranslatedValues>\\n <ValueTranslation>2019-07-05至2025-07-05</ValueTranslation>\\n <KeyTranslation>validity period</KeyTranslation>\\n <Value>2019-07-05至2025-07-05</Value>\\n <Key>有效期限</Key>\\n </TranslatedValues>\\n </Data>\\n</TranslateCertificateResponse>","errorExample":""}]',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetImageTranslate' => [
+ 'summary' => '获取图片翻译结果',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Url',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'http://xxxxxxx.oss-cn-shenzhen.aliyuncs.com/xxxxxx.jpg',
+ ],
+ ],
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'en',
+ ],
+ ],
+ [
+ 'name' => 'Extra',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '{"have_ocr": "false", "without_text":"true", "have_psd": "false", "ignore_entity": "false"}',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'ok',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'A41F6E25-8520-4AF0-90EF-AF7E32840108',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Url' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'https://ae01.alicdn.com/kf/xxxxx.jpeg',
+ ],
+ 'Orc' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '',
+ ],
+ 'PictureEditor' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => 'System.RequestTimeOut',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.Error',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.UrlDecodingError',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.ParameterError',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageNotSupported',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageDetectError',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateError',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.StringTooLong',
+ 'errorMessage' => 'The maximum length of the specified string is exceeded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.subNotPermission',
+ 'errorMessage' => 'The sub-account is not authorized to perform the operation.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivated',
+ 'errorMessage' => 'The account has not activated the service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.SubServiceFailed',
+ 'errorMessage' => 'Sub-account service failed.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateServiceCallFailed',
+ 'errorMessage' => 'Failed to call the translation service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivatedOrInArrears',
+ 'errorMessage' => 'The service is not activated or the account has an outstanding balance.',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => 'System.unknownError',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"A41F6E25-8520-4AF0-90EF-AF7E32840108\\",\\n \\"Data\\": {\\n \\"Url\\": \\"https://ae01.alicdn.com/kf/xxxxx.jpeg\\",\\n \\"Orc\\": \\"{\\\\\\"text\\\\\\":\\\\\\"P翼-至草款\\\\\\",\\\\\\"width\\\\\\":750,\\\\\\"wordNum\\\\\\":10}\\",\\n \\"PictureEditor\\": \\"{\\\\\\"text\\\\\\":\\\\\\"P翼-至草款\\\\\\",\\\\\\"width\\\\\\":750,\\\\\\"wordNum\\\\\\":10}\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>ok</Message>\\n<RequestId>A41F6E25-8520-4AF0-90EF-AF7E32840108</RequestId>\\n<Data>\\n <PictureEditor>{\\"text\\":\\"P翼-至草款\\",\\"width\\":750,\\"wordNum\\":10}</PictureEditor>\\n <Orc>{\\"text\\":\\"P翼-至草款\\",\\"width\\":750,\\"wordNum\\":10}</Orc>\\n <Url>https://ae01.alicdn.com/kf/xxxxx.jpeg</Url>\\n</Data>\\n<Code>200</Code>","errorExample":""}]',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateImageTranslateTask' => [
+ 'summary' => '创建图片翻译任务',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'high',
+ 'chargeType' => 'paid',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'UrlList',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'http://xxx,http://yyy',
+ ],
+ ],
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'en',
+ ],
+ ],
+ [
+ 'name' => 'Extra',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '{"have_ocr":"false","without_text":"false","have_psd":"true","ignore_entity":"false"}',
+ ],
+ ],
+ [
+ 'name' => 'ClientToken',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'ok',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'A41F6E25-8520-4AF0-90EF-AF7E32840108',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'TaskId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'A41F6E25-8520-4AF0-90EF-111111',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => 'System.RequestTimeOut',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.Error',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.UrlDecodingError',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.ParameterError',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageNotSupported',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageDetectError',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateError',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.StringTooLong',
+ 'errorMessage' => 'The maximum length of the specified string is exceeded.',
+ ],
+ ],
+ 110 => [
+ [
+ 'errorCode' => 'System.AccountNotActivated',
+ 'errorMessage' => 'The account has not activated the service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.SubServiceFailed',
+ 'errorMessage' => 'Sub-account service failed.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateServiceCallFailed',
+ 'errorMessage' => 'Failed to call the translation service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivatedOrInArrears',
+ 'errorMessage' => 'The service is not activated or the account has an outstanding balance.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"A41F6E25-8520-4AF0-90EF-AF7E32840108\\",\\n \\"Data\\": {\\n \\"TaskId\\": \\"A41F6E25-8520-4AF0-90EF-111111\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<Message>ok</Message>\\n<RequestId>A41F6E25-8520-4AF0-90EF-AF7E32840108</RequestId>\\n<Data>\\n <TaskId>A41F6E25-8520-4AF0-90EF-111111</TaskId>\\n</Data>\\n<Code>200</Code>","errorExample":""}]',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetImageTranslateTask' => [
+ 'summary' => '获取图片翻译任务',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TaskId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'xxxxxx',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'ok',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'xxxxxxx',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'ImageData' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '[{xxxxxx}]',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => 'System.RequestTimeOut',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.Error',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.UrlDecodingError',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.ParameterError',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageNotSupported',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageDetectError',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateError',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.StringTooLong',
+ 'errorMessage' => 'The maximum length of the specified string is exceeded.',
+ ],
+ ],
+ 110 => [
+ [
+ 'errorCode' => 'System.AccountNotActivated',
+ 'errorMessage' => 'The account has not activated the service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.SubServiceFailed',
+ 'errorMessage' => 'Sub-account service failed.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateServiceCallFailed',
+ 'errorMessage' => 'Failed to call the translation service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivatedOrInArrears',
+ 'errorMessage' => 'The service is not activated or the account has an outstanding balance.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"xxxxxxx\\",\\n \\"Data\\": {\\n \\"ImageData\\": \\"[{xxxxxx}]\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetImageDiagnose' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Url',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'http://xxxxx.oss-cn-shenzhen.aliyuncs.com/jd/41209/xxxxx.jpg',
+ ],
+ ],
+ [
+ 'name' => 'Extra',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{ "product_id": "1", "platform": "ae" }',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'ok',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Language' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'zh',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => 'System.RequestTimeOut',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.Error',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.UrlDecodingError',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.ParameterError',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageNotSupported',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageDetectError',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateError',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.StringTooLong',
+ 'errorMessage' => 'The maximum length of the specified string is exceeded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.subNotPermission',
+ 'errorMessage' => 'The sub-account is not authorized to perform the operation.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivated',
+ 'errorMessage' => 'The account has not activated the service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.SubServiceFailed',
+ 'errorMessage' => 'Sub-account service failed.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateServiceCallFailed',
+ 'errorMessage' => 'Failed to call the translation service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivatedOrInArrears',
+ 'errorMessage' => 'The service is not activated or the account has an outstanding balance.',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => 'System.unknownError',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Data\\": {\\n \\"Language\\": \\"zh\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>DC2DCCC9-C3DF-4F59-8D8E-78185729F16D</RequestId>\\n<Message>ok</Message>\\n<Data>\\n <Language>zh</Language>\\n</Data>\\n<Code>200</Code>","errorExample":""}]',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetTitleDiagnose' => [
+ 'summary' => 'GetTitleDiagnose',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Title',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'Amroe Japan Comic Theme Uzumaki Naruto Namikaze Minato 3D Visual Cartoon 7 Color USB Touch',
+ ],
+ ],
+ [
+ 'name' => 'Language',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'Platform',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'ae',
+ ],
+ ],
+ [
+ 'name' => 'CategoryId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '123',
+ ],
+ ],
+ [
+ 'name' => 'Extra',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '{ "product_id": "1", "platform": "ae" }',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'ok',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'DuplicateWords' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'hi',
+ ],
+ 'ContainCoreClasses' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'WordCount' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '10',
+ ],
+ 'LanguageQualityScore' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '2',
+ ],
+ 'AllUppercaseWords' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Boy',
+ ],
+ 'OverLengthLimit' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '100',
+ ],
+ 'DisableWords' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'baba',
+ ],
+ 'NoFirstUppercaseList' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'no',
+ ],
+ 'TotalScore' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '3',
+ ],
+ 'WordSpelledCorrectError' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'ahk',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => 'System.RequestTimeOut',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.Error',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.UrlDecodingError',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.ParameterError',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageNotSupported',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageDetectError',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateError',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.StringTooLong',
+ 'errorMessage' => 'The maximum length of the specified string is exceeded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.subNotPermission',
+ 'errorMessage' => 'The sub-account is not authorized to perform the operation.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivated',
+ 'errorMessage' => 'The account has not activated the service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.SubServiceFailed',
+ 'errorMessage' => 'Sub-account service failed.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateServiceCallFailed',
+ 'errorMessage' => 'Failed to call the translation service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivatedOrInArrears',
+ 'errorMessage' => 'The service is not activated or the account has an outstanding balance.',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => 'System.unknownError',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Data\\": {\\n \\"DuplicateWords\\": \\"hi\\",\\n \\"ContainCoreClasses\\": \\"true\\",\\n \\"WordCount\\": \\"10\\",\\n \\"LanguageQualityScore\\": \\"2\\",\\n \\"AllUppercaseWords\\": \\"Boy\\",\\n \\"OverLengthLimit\\": \\"100\\",\\n \\"DisableWords\\": \\"baba\\",\\n \\"NoFirstUppercaseList\\": \\"no\\",\\n \\"TotalScore\\": \\"3\\",\\n \\"WordSpelledCorrectError\\": \\"ahk\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>DC2DCCC9-C3DF-4F59-8D8E-78185729F16D</RequestId>\\n<Message>ok</Message>\\n<Data>\\n <NoFirstUppercaseList>no</NoFirstUppercaseList>\\n <ContainCoreClasses>true</ContainCoreClasses>\\n <DisableWords>baba</DisableWords>\\n <WordCount>10</WordCount>\\n <OverLengthLimit>100</OverLengthLimit>\\n <TotalScore>3</TotalScore>\\n <DuplicateWords>hi</DuplicateWords>\\n <WordSpelledCorrectError>ahk</WordSpelledCorrectError>\\n <AllUppercaseWords>Boy</AllUppercaseWords>\\n <LanguageQualityScore>2</LanguageQualityScore>\\n</Data>\\n<Code>200</Code>","errorExample":""}]',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetTitleGenerate' => [
+ 'summary' => 'GetTitleGenerate',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Title',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '10pcs 80ml Kitchen Disposable',
+ ],
+ ],
+ [
+ 'name' => 'Language',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'en',
+ ],
+ ],
+ [
+ 'name' => 'Platform',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'ae',
+ ],
+ ],
+ [
+ 'name' => 'CategoryId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '127896018',
+ ],
+ ],
+ [
+ 'name' => 'HotWords',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'None,Plastic',
+ ],
+ ],
+ [
+ 'name' => 'Attributes',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{2:"None",10:"Plastic"}',
+ ],
+ ],
+ [
+ 'name' => 'Extra',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{ "product_id": "1", "platform": "ae" }',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'ok',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Titles' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '10pcs 80ml Kitchen Disposable Plastic Sauce Cup Pot Chutney Container',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => 'System.RequestTimeOut',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.Error',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.UrlDecodingError',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.ParameterError',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageNotSupported',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageDetectError',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateError',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.StringTooLong',
+ 'errorMessage' => 'The maximum length of the specified string is exceeded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.subNotPermission',
+ 'errorMessage' => 'The sub-account is not authorized to perform the operation.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivated',
+ 'errorMessage' => 'The account has not activated the service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.SubServiceFailed',
+ 'errorMessage' => 'Sub-account service failed.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateServiceCallFailed',
+ 'errorMessage' => 'Failed to call the translation service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivatedOrInArrears',
+ 'errorMessage' => 'The service is not activated or the account has an outstanding balance.',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => 'System.unknownError',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Data\\": {\\n \\"Titles\\": \\"10pcs 80ml Kitchen Disposable Plastic Sauce Cup Pot Chutney Container\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>DC2DCCC9-C3DF-4F59-8D8E-78185729F16D</RequestId>\\n<Message>ok</Message>\\n<Data>\\n <Titles>10pcs 80ml Kitchen Disposable Plastic Sauce Cup Pot Chutney Container</Titles>\\n</Data>\\n<Code>200</Code>","errorExample":""}]',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetTitleIntelligence' => [
+ 'summary' => 'GetTitleIntelligence',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Platform',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'ae',
+ ],
+ ],
+ [
+ 'name' => 'Extra',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"product_id":"1212"}',
+ ],
+ ],
+ [
+ 'name' => 'CatLevelThreeId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'maximum' => '99999999999',
+ 'minimum' => '0',
+ 'example' => '111',
+ ],
+ ],
+ [
+ 'name' => 'CatLevelTwoId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'docRequired' => true,
+ 'maximum' => '99999999999',
+ 'minimum' => '0',
+ 'example' => '222',
+ ],
+ ],
+ [
+ 'name' => 'Keywords',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'hello,apple',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'D70487B4-8891-4D24-BB64-8788E53671FB',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Titles' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Custom Hello Kitty PVC Cartoon Apple for Home Garden Complete Apple Bath Shower',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => 'System.RequestTimeOut',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.Error',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.UrlDecodingError',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.ParameterError',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageNotSupported',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageDetectError',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateError',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.StringTooLong',
+ 'errorMessage' => 'The maximum length of the specified string is exceeded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.subNotPermission',
+ 'errorMessage' => 'The sub-account is not authorized to perform the operation.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivated',
+ 'errorMessage' => 'The account has not activated the service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.SubServiceFailed',
+ 'errorMessage' => 'Sub-account service failed.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateServiceCallFailed',
+ 'errorMessage' => 'Failed to call the translation service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivatedOrInArrears',
+ 'errorMessage' => 'The service is not activated or the account has an outstanding balance.',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => 'System.unknownError',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D70487B4-8891-4D24-BB64-8788E53671FB\\",\\n \\"Data\\": {\\n \\"Titles\\": \\"Custom Hello Kitty PVC Cartoon Apple for Home Garden Complete Apple Bath Shower\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>D70487B4-8891-4D24-BB64-8788E53671FB</RequestId>\\n<Message>success</Message>\\n<Data>\\n <Titles>Custom Hello Kitty PVC Cartoon Apple for Home Garden Complete Apple Bath Shower</Titles>\\n</Data>\\n<Code>200</Code>","errorExample":""}]',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'OpenAlimtService' => [
+ 'summary' => '开通服务',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ [
+ 'APP' => [],
+ ],
+ [
+ 'PrivateKey' => [],
+ ],
+ [
+ 'BearerToken' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'id',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'OrderId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '123456',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'xxxx-xxxxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'ORDER.OPEND',
+ 'errorMessage' => 'You have already open the service. Go to the console to start using it',
+ ],
+ [
+ 'errorCode' => 'PRICEING.PLAN.RESULT.NOT.FOUND',
+ 'errorMessage' => 'The order is not found',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"OrderId\\": \\"123456\\",\\n \\"RequestId\\": \\"xxxx-xxxxx\\"\\n}","errorExample":""}]',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetTranslateReport' => [
+ 'summary' => 'GetTranslateReport',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'BeginTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '2021-03-01 00:00:00',
+ ],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '2021-03-01 23:59:59',
+ ],
+ ],
+ [
+ 'name' => 'ApiName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'Group',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Data' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '{"result":[{"time":"2021-10-21 00:00:00","total":100}]}',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 109 => [
+ [
+ 'errorCode' => '10009',
+ 'errorMessage' => '子账号没有权限',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10010',
+ 'errorMessage' => '账号没有开通服务',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10011',
+ 'errorMessage' => '子账号服务失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10012',
+ 'errorMessage' => '翻译服务调用失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10013',
+ 'errorMessage' => '账号服务没有开通或者欠费',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => '19999',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"{\\\\\\"result\\\\\\":[{\\\\\\"time\\\\\\":\\\\\\"2021-10-21 00:00:00\\\\\\",\\\\\\"total\\\\\\":100}]}\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\"\\n}","errorExample":""},{"type":"xml","example":"<GetTranslateReportResponse>\\n <Code>200</Code>\\n <Message>success</Message>\\n <Data>{\\"result\\":[{\\"time\\":\\"2021-10-21 00:00:00\\",\\"total\\":100}]}</Data>\\n <RequestId>86D18195-D89C-4C8C-9DC4-5FCE789CE6D5</RequestId>\\n</GetTranslateReportResponse>","errorExample":""}]',
+ ],
+ 'TranslateSearch' => [
+ 'summary' => '搜索翻译',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'FormatType',
+ 'in' => 'formData',
+ 'allowEmptyValue' => false,
+ 'schema' => [
+ 'title' => '幂等参数',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'text',
+ ],
+ ],
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'en',
+ ],
+ ],
+ [
+ 'name' => 'Scene',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'query',
+ ],
+ ],
+ [
+ 'name' => 'SourceText',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '今天天气不错',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'type' => 'string',
+ ],
+ 'Code' => [
+ 'type' => 'string',
+ ],
+ 'Message' => [
+ 'type' => 'string',
+ ],
+ 'Data' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Translated' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IdempotentParameterMismatch',
+ 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => null,
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'me-central-1',
+ 'endpoint' => 'mt.me-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-2-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-south-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-2',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-3',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-finance-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-finance-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-gov-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-nu16-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-chengdu',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-edge-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-fujian',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-haidian-cm12-c01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-bj-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-finance',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-prod-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-2',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-3',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-test-306',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong-finance-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-huhehaote',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-north-2-gov-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao-nebula',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-et15-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-et2-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-inner',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-internal-test-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-finance-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-inner',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-st4-d01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-su18-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wuhan',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-yushanfang',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangbei-na61-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou-na62-a01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhengzhou-nebula-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1-oxs',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-east-1',
+ 'endpoint' => 'alimt.me-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'rus-west-1-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-east-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-west-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ ],
+];
diff --git a/data/en_us/alimt/2019-01-02/api-docs.php b/data/en_us/alimt/2019-01-02/api-docs.php
new file mode 100644
index 0000000..e02fe88
--- /dev/null
+++ b/data/en_us/alimt/2019-01-02/api-docs.php
@@ -0,0 +1,743 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'ROA',
+ 'product' => 'alimt',
+ 'version' => '2019-01-02',
+ ],
+ 'directories' => [
+ [
+ 'id' => 57983,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'TranslateECommerce',
+ 'TranslateGeneral',
+ ],
+ ],
+ [
+ 'id' => 57986,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'GetResource',
+ ],
+ ],
+ [
+ 'id' => 0,
+ 'title' => '其它',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListMtConnector',
+ ],
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [],
+ ],
+ 'apis' => [
+ 'TranslateECommerce' => [
+ 'summary' => '专业文本翻译',
+ 'path' => '/api/translate/web/ecommerce',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'high',
+ 'chargeType' => 'paid',
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'type' => 'string',
+ ],
+ 'Message' => [
+ 'type' => 'string',
+ ],
+ 'RequestId' => [
+ 'type' => 'string',
+ ],
+ 'Data' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Translated' => [
+ 'type' => 'string',
+ ],
+ 'WordCount' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => '10001',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10002',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10003',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10004',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10005',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10006',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10007',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10008',
+ 'errorMessage' => 'The specified string is too long.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10009',
+ 'errorMessage' => '子账号没有权限',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10010',
+ 'errorMessage' => '账号没有开通服务',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10011',
+ 'errorMessage' => '子账号服务失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10012',
+ 'errorMessage' => '翻译服务调用失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10013',
+ 'errorMessage' => '账号服务没有开通或者欠费',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => '19999',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => null,
+ ],
+ 'TranslateGeneral' => [
+ 'summary' => '通用文本翻译',
+ 'path' => '/api/translate/web/general',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'high',
+ 'chargeType' => 'paid',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'type' => 'string',
+ ],
+ 'Message' => [
+ 'type' => 'string',
+ ],
+ 'RequestId' => [
+ 'type' => 'string',
+ ],
+ 'Data' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Translated' => [
+ 'type' => 'string',
+ ],
+ 'WordCount' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => '10001',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10002',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10003',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10004',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10005',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10006',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10007',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10008',
+ 'errorMessage' => 'The specified string is too long.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10009',
+ 'errorMessage' => '子账号没有权限',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10010',
+ 'errorMessage' => '账号没有开通服务',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10011',
+ 'errorMessage' => '子账号服务失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10012',
+ 'errorMessage' => '翻译服务调用失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10013',
+ 'errorMessage' => '账号服务没有开通或者欠费',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => '19999',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => null,
+ ],
+ 'GetResource' => [
+ 'path' => '/api/resource',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '',
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'type' => 'string',
+ ],
+ 'Message' => [
+ 'type' => 'string',
+ ],
+ 'Data' => [
+ 'type' => 'string',
+ ],
+ 'RequestId' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => 'System.RequestTimeOut',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.Error',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.UrlDecodingError',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.ParameterError',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageNotSupported',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.LanguageDetectError',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateError',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.StringTooLong',
+ 'errorMessage' => 'The maximum length of the specified string is exceeded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.subNotPermission',
+ 'errorMessage' => 'The sub-account is not authorized to perform the operation.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivated',
+ 'errorMessage' => 'The account has not activated the service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.SubServiceFailed',
+ 'errorMessage' => 'Sub-account service failed.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.TranslateServiceCallFailed',
+ 'errorMessage' => 'Failed to call the translation service.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'System.AccountNotActivatedOrInArrears',
+ 'errorMessage' => 'The service is not activated or the account has an outstanding balance.',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => 'System.unknownError',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => null,
+ ],
+ 'ListMtConnector' => [
+ 'summary' => '获取系统模型和AI模型',
+ 'path' => '/api/alynx/listMtModels',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'high',
+ 'chargeType' => 'paid',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'UserId',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'success' => [
+ 'type' => 'string',
+ ],
+ 'data' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'key' => [
+ 'type' => 'string',
+ ],
+ 'value' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ 'errorMessage' => [
+ 'type' => 'string',
+ ],
+ 'bizErrorCode' => [
+ 'type' => 'integer',
+ 'format' => 'int64',
+ ],
+ 'RequestId' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'me-central-1',
+ 'endpoint' => 'mt.me-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-2-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-south-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-2',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-3',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-finance-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-finance-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-gov-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-nu16-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-chengdu',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-edge-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-fujian',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-haidian-cm12-c01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-bj-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-finance',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-prod-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-2',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-3',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-test-306',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong-finance-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-huhehaote',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-north-2-gov-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao-nebula',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-et15-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-et2-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-inner',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-internal-test-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-finance-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-inner',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-st4-d01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-su18-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wuhan',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-yushanfang',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangbei-na61-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou-na62-a01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhengzhou-nebula-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1-oxs',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-east-1',
+ 'endpoint' => 'alimt.me-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'rus-west-1-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-east-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-west-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ ],
+];
diff --git a/data/en_us/alimt/2019-01-07/api-docs.php b/data/en_us/alimt/2019-01-07/api-docs.php
new file mode 100644
index 0000000..493f3fa
--- /dev/null
+++ b/data/en_us/alimt/2019-01-07/api-docs.php
@@ -0,0 +1,612 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'RPC',
+ 'product' => 'alimt',
+ 'version' => '2019-01-07',
+ ],
+ 'directories' => [
+ [
+ 'id' => 22948,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'TranslateECommerce',
+ 'TranslateGeneral',
+ ],
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [],
+ ],
+ 'apis' => [
+ 'TranslateECommerce' => [
+ 'summary' => '专业文本翻译',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'high',
+ 'chargeType' => 'paid',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'FormatType',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ ],
+ ],
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ ],
+ ],
+ [
+ 'name' => 'SourceText',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ ],
+ ],
+ [
+ 'name' => 'Scene',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'Message' => [
+ 'type' => 'string',
+ ],
+ 'RequestId' => [
+ 'type' => 'string',
+ ],
+ 'Data' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Translated' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => '10001',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10002',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10003',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10004',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10005',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10006',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10007',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10008',
+ 'errorMessage' => 'The specified string is too long.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10009',
+ 'errorMessage' => '子账号没有权限',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10010',
+ 'errorMessage' => '账号没有开通服务',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10011',
+ 'errorMessage' => '子账号服务失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10012',
+ 'errorMessage' => '翻译服务调用失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10013',
+ 'errorMessage' => '账号服务没有开通或者欠费',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => '19999',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => null,
+ ],
+ 'TranslateGeneral' => [
+ 'summary' => '通用文本翻译',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'high',
+ 'chargeType' => 'paid',
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'FormatType',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ ],
+ ],
+ [
+ 'name' => 'SourceLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ ],
+ ],
+ [
+ 'name' => 'TargetLanguage',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ ],
+ ],
+ [
+ 'name' => 'SourceText',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ ],
+ ],
+ [
+ 'name' => 'Scene',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'default' => 'general',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'Message' => [
+ 'type' => 'string',
+ ],
+ 'RequestId' => [
+ 'type' => 'string',
+ ],
+ 'Data' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Translated' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 101 => [
+ [
+ 'errorCode' => '10001',
+ 'errorMessage' => 'The request has timed out.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10002',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10003',
+ 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10004',
+ 'errorMessage' => 'Some required parameters are missing.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10005',
+ 'errorMessage' => 'The specified language pair is not supported.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10006',
+ 'errorMessage' => 'An error occurred while detecting the language.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10007',
+ 'errorMessage' => 'An error occurred while translating.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10008',
+ 'errorMessage' => 'The specified string is too long.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10009',
+ 'errorMessage' => '子账号没有权限',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10010',
+ 'errorMessage' => '账号没有开通服务',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10011',
+ 'errorMessage' => '子账号服务失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10012',
+ 'errorMessage' => '翻译服务调用失败',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => '10013',
+ 'errorMessage' => '账号服务没有开通或者欠费',
+ ],
+ ],
+ 199 => [
+ [
+ 'errorCode' => '19999',
+ 'errorMessage' => 'An unknown error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => null,
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'me-central-1',
+ 'endpoint' => 'mt.me-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-2-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-south-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-2',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-3',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-finance-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-finance-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-gov-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-nu16-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-chengdu',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-edge-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-fujian',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-haidian-cm12-c01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-bj-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-finance',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-prod-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-2',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-internal-test-3',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-test-306',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong-finance-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-huhehaote',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-north-2-gov-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-qingdao-nebula',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-et15-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-et2-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-inner',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-internal-test-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-finance-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-inner',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-st4-d01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-su18-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wuhan',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-yushanfang',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangbei-na61-b01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou-na62-a01',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhengzhou-nebula-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1-oxs',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-east-1',
+ 'endpoint' => 'alimt.me-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'rus-west-1-pop',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-east-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-west-1',
+ 'endpoint' => 'mt.aliyuncs.com',
+ ],
+ ],
+];