python七牛sdk删除bucket怎么写?

新手上路,请多包涵

用auth.token_of_request生成token后请求总是报invalid multipart format: request Content-Type isn't multipart/form-data
代码如下

auth = qiniu.Auth(qn_accesskey, qn_secretkey)
token = auth.token_of_request('http://up-z1.qiniu.com/drop/{}'.format('test-delete'), content_type='application/x-www-form-urlencoded')
headers = {'Authorization': 'Qiniu {}'.format(token), 'Content-Type': 'application/x-www-form-urlencoded'}
res = requests.post("http://up-z1.qiniu.com/drop/{}".format('test-delete'), headers=headers)
阅读 1.8k
1 个回答
新手上路,请多包涵
logo
七牛云问答
子站问答
访问
宣传栏