支持的转换模型,模型标志:from2to
s2t Simplified Chinese to Traditional Chinese 簡體到繁體
t2s Traditional Chinese to Simplified Chinese 繁體到簡體
s2tw Simplified Chinese to Traditional Chinese (Taiwan Standard) 簡體到臺灣正體
tw2s Traditional Chinese (Taiwan Standard) to Simplified Chinese 臺灣正體到簡體
s2hk Simplified Chinese to Traditional Chinese (Hong Kong variant) 簡體到香港繁體
hk2s Traditional Chinese (Hong Kong variant) to Simplified Chinese 香港繁體到簡體
s2twp Simplified Chinese to Traditional Chinese (Taiwan Standard) with Taiwanese idiom 簡體到繁體(臺灣正體標準)並轉換爲臺灣常用詞彙
tw2sp Traditional Chinese (Taiwan Standard) to Simplified Chinese with Mainland Chinese idiom 繁體(臺灣正體標準)到簡體並轉換爲中國大陸常用詞彙
t2tw Traditional Chinese (OpenCC Standard) to Taiwan Standard 繁體(OpenCC 標準)到臺灣正體
hk2t Traditional Chinese (Hong Kong variant) to Traditional Chinese 香港繁體到繁體(OpenCC 標準)
t2hk Traditional Chinese (OpenCC Standard) to Hong Kong variant 繁體(OpenCC 標準)到香港繁體
t2jp Traditional Chinese Characters (Kyūjitai) to New Japanese Kanji (Shinjitai) 繁體(OpenCC 標準,舊字體)到日文新字體
jp2t New Japanese Kanji (Shinjitai) to Traditional Chinese Characters (Kyūjitai) 日文新字體到繁體(OpenCC 標準,舊字體)
tw2t Traditional Chinese (Taiwan standard) to Traditional Chinese 臺灣正體到繁體(OpenCC 標準)
s2hk-finance 针对香港市场金融数据,做了特殊补充。
接口地址:http(s)://分配的二级域名/convert
请求方式:GET / POST
名称 | 位置 | 必填 | 示例 | 说明 |
---|---|---|---|---|
token | query / header | 是 | abcdefghijklmnopqrstuvwxyz012345 | 用户中心 -> 我的APi 中获取 |
名称 | 位置 | 必填 | 示例 | 说明 |
---|---|---|---|---|
from | query | 否 | s | |
to | query | 否 | t | |
content | query | 否 | 你好 | |
model | query | 否 | s2t | 模型可不填 |
from | post | 否 | s | |
to | post | 否 | t | |
content | post | 否 | 你好 | |
model | post | 否 | s2t | 模型可不填 |
返回成功示例
//json
{
"code": 0,
"data": {
"from": "s",
"to": "t",
"content": "你好",
"model": "s2t"
},
"msg": "ok",
"status": true
}
返回失败示例
//json
{
"code": 0,
"data": null,
"msg": "转换的模型不存在",
"status": false
}