用Python请求生成卷曲请求?

2024-04-23 20:46:48 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要发出一个python请求,如下所示:

curl --header "Authorization: XXXXXXXXXXXXX"
https://api.getnomi.com/v2/reports/conversion?account=XXXXXXXXXXXXXX
\&store=XXXXXXXXXX\&date_from=1329238082\&date_to=1360860473

我试过了:

import requests as r

^{pr2}$

我一直得到这样的回应<Response [404]>

知道为什么吗?在


Tags: storehttpscomapidateaccountcurlv2