## 简繁火星文转换 >[danger]### 免费接口,每日100次免费调用,会员可不限次数调用,购买[API会员](https://market.topthink.com/product/210) ![](https://img.kancloud.cn/6d/81/6d817a8fa580df2f6af8ae36d0d043e7_153x146.png) > 实现简体、繁体、火星文之间的转换 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/char/convert ``` ### 请求参数 | 名称 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | appCode| 是 |string| 用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | text | 是 | string | 需要转换字符串 | | type | 是 | int | 需要转换成的类型。0:简体 1:繁体 2:火星文 | ### 返回参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | instr | string | 输入的字符串 | | outstr | string | 转换后的字符串 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->charConvert() ->withText('双鱼座') ->withType(2) ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功的返回", "data": { "instr": "双鱼座", "outstr": "叒渔蓙" } } ~~~