本文作者: 峡州仙士
原文链接: https://cjh0613.github.io/blog/20200521xiaoiAPI.html
声明: 如文章有更新,将首先在本网站(峡州仙士之页)发布!(可百度搜到)| 本网站(峡州仙士之页)所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
首先,登陆http://open.xiaoi.com,左侧开发者中心,客服API,得到Key
和Secret
调用示例:
仅返回字符:
print(cjhGetResponse("你好","0"))
返回xml:
print(cjhGetResponse("你好","1"))
函数:
import urllib
import random
import hashlib
import requests
import