OkayAPI Docs


API Path: /api/Ext/Pinyin/Abbr

API Description: 获取首字符字符串

2
API Traffic
HTTP/HTTPS
Protocol
GET/POST
Method
UTF-8
Charset
JSON
Response

API Debug   


API Params

ParameterTypeRequiredDefaultNoteDescription
HTTP_APPKEYStringRequiredMIN: 32Common Put Your APPKEY
textStringRequired待转为拼音的字符串内容
save_other_charIntOptaion0是否保留非中文的字符:1-是;0-否

API Debug

KEYREQUIREDVALUE
app_key *Required
text *Required
save_other_char Option

API Response

KEYTypeDescription
pinyinString拼音首字符串,用空格隔开

HTTP Response Code

HTTP Status CodeDescription
Http Status = 200Success
Http Status = 400表示客户端参数错误
Http Status = 404表示接口服务不存在
Http Status = 500表示服务端内部错误