我对Python还不熟悉。我正在尝试连接到一个远程restfulapi。我有端点url。以及一个API密钥和一个API UUID,我被告知要传递给服务器(不确定正确的术语)。你知道吗
现在,据我所知,我有了这个:
import requests
from requests.auth import HTTPBasicAuth
api_uuid = 'y'
api_key = 'x'
api_url = 'https://test.api.com/restul/data/feed/'
response = requests.get(api_url)
print (response.status_code)
我不确定需要做什么才能将api\u密钥和api\uuid传递到远程api服务器。你知道吗
我读过有多种工具,如oauth1、oauth2和HTTPBasicAuth。但这些似乎都不是我所需要的。你知道吗
谢谢你的帮助。你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐