【发布时间】:2013-07-29 15:31:00
【问题描述】:
我最近在向我的时间轴 URL 发出请求时收到 400 bad request parse 错误。
我发帖到这个网址 timeline_url = '@987654321@'
编辑 代码如下:
headers = {'Content-Type': 'application/json',
'Authorization' : 'Bearer %s' % access_token}
body = {"text" : "Waddup doe!"}
""" ***********THIS IS RETURNING ERROR 400 PARSE ERROR***********"""
send_request(timeline_url, headers, 'POST',body)
send_request 方法是使用requests
req = requests.post(url, data=body, headers=headers)
我只是想在我的时间线中插入纯文本。
【问题讨论】:
标签: python parse-error google-mirror-api