【发布时间】:2013-08-30 07:34:58
【问题描述】:
我是 Python API 的新手,想从 Helpscout 获取 json 对象“对话线程”,遵循他们的 developer API documentation。
我尝试了requests.get("https://api.helpscout.net/v1/conversations/{id}.json")(我将 id 替换为实际对话)但返回 401 错误。
Helpscout 给出了一个 API_KEY,我需要以某种方式将它传递给请求。我该怎么做呢?
谢谢!
In [23]: requests.get("https://api.helpscout.net/v1/conversations/10532436.json")
Out[23]: <Response [401]>
【问题讨论】: