首先,在百度API:http://apistore.baidu.com/查找自己想用的api接口,例如:翻译:

 

 

[API]API运用实例

利用postman工具进行测试:

[API]API运用实例

返回结果为JSON字符串:

{
"errNum": 0,
"errMsg": "success",
"retData": {
"from": "en",
"to": "zh",
"dict_result": {
"word_name": "hello",
"symbols": [
{
"ph_am": "həˈloʊ",
"ph_en": "hə'ləʊ",
"parts": [
{
"part": "int.",
"means": [
"哈喽,喂",
"你好,您好",
"表示问候",
"打招呼"
]
},
{
"part": "n.",
"means": [
"“喂”的招呼声或问候声"
]
},
{
"part": "vi.",
"means": [
"喊“喂”"
]
}
]
}
]
}
}
}

相关文章:

  • 2022-12-23
  • 2021-10-14
  • 2021-11-20
  • 2021-11-17
  • 2021-04-03
  • 2021-09-07
猜你喜欢
  • 2022-02-07
  • 2022-12-23
  • 2021-09-07
  • 2021-11-26
  • 2021-12-20
  • 2022-12-23
相关资源
相似解决方案