基于电商大数据,自动优化商品标题。
该接口已计划下线,不建议继续调用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | GetTitleGenerate | 系统规定参数。取值:GetTitleGenerate。 |
| Title | String | 是 | 10pcs 80ml Kitchen Disposable | 标题内容 |
| Language | String | 是 | en | 标题语种,语向支持以及语言代码 |
| Platform | String | 是 | ae | 商品标题所属平台,支持ae/icbu |
| CategoryId | String | 是 | 127896018 | 类目ID,如没有类目数据则传入0 |
| HotWords | String | 否 | None,Plastic | 热词 |
| Attributes | String | 否 | {2:"None",10:"Plastic"} | 商品属性,请如示例传入JSON数据 |
| Extra | String | 否 | { "product_id": "1", "platform": "ae" } |
|
返回数据
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Code | Integer | 200 | 状态码,正常返回200 |
| Message | String | ok | 错误的时候,返回错误信息 |
| RequestId | String | DC2DCCC9-C3DF-4F59-8D8E-78185729F16D | 请求唯一串 |
| Data | Object | 返回内容 |
|
| Titles | String | 10pcs 80ml Kitchen Disposable Plastic Sauce Cup Pot Chutney Container | 优化后的标题内容 |
示例
请求示例
http(s)://[Endpoint]/?Action=GetTitleGenerate
&CategoryId=127896018
&Language=en
&Platform=ae
&Title=10pcs 80ml Kitchen Disposable Plastic Sauce Cup Pot Chutney Container
&<公共请求参数>
正常返回示例
XML格式
HTTP/1.1 200 OK
Content-Type:application/xml
<RequestId>DC2DCCC9-C3DF-4F59-8D8E-78185729F16D</RequestId>
<Message>ok</Message>
<Data>
<Titles>10pcs 80ml Kitchen Disposable Plastic Sauce Cup Pot Chutney Container</Titles>
</Data>
<Code>200</Code>
JSON格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "DC2DCCC9-C3DF-4F59-8D8E-78185729F16D",
"Message" : "ok",
"Data" : {
"Titles" : "10pcs 80ml Kitchen Disposable Plastic Sauce Cup Pot Chutney Container"
},
"Code" : "200"
}
错误码
| HttpCode | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 110 | System.AccountNotActivated | The account has not activated the service. | 账号没有开通服务 |
| 199 | System.unknownError | An unknown error occurred. | 未知错误 |
| 111 | System.SubServiceFailed | Sub-account service failed. | 子账号服务失败 |
| 101 | System.RequestTimeOut | The request has timed out. | 请求超时 |
| 112 | System.TranslateServiceCallFailed | Failed to call the translation service. | 翻译服务调用失败 |
| 102 | System.Error | A system error occurred. | 系统错误 |
| 113 | System.AccountNotActivatedOrInArrears | The service is not activated or the account has an outstanding balance. | 账号服务没有开通或者欠费 |
| 103 | System.UrlDecodingError | An error occurred while decoding the URL. Verify that the specified URL is encoded. | URL编码错误 |
| 104 | System.ParameterError | Some required parameters are missing. | 参数错误 |
| 105 | System.LanguageNotSupported | The specified language pair is not supported. | 该语向不支持 |
| 106 | System.LanguageDetectError | An error occurred while detecting the language. | 语种识别错误 |
| 107 | System.TranslateError | An error occurred while translating. | 翻译错误 |
| 108 | System.StringTooLong | The maximum length of the specified string is exceeded. | 字符过长 |
| 109 | System.subNotPermission | The sub-account is not authorized to perform the operation. | 子账号没有权限 |
访问错误中心查看更多错误码。