“状态”:400,“代码”:“ bad_request” API框

问题描述

当我尝试使用API​​更新文件Box的描述时,遇到400错误的请求错误 有人可以帮我吗?

def put_comment(real_rst1,buffer_id):
    url = "https://api.Box.com/2.0/folders/" + buffer_id[1:-3]
    #print(url)
    print(real_rst1)
    #error in payload
    payload = {'description': real_rst1} 
    headers = {'Authorization': 'Bearer fUpqywpPhJx6YAWu9UW2AVhvMGZ0FAl9'}
    response = requests.request("PUT",url,headers = headers) #data = payload)
    print(response.text.encode('utf8'))

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)