我正在尝试使用此 Python 代码访问二级市场列表的 Folio API。类似的代码在主要的 Lending Club 列表中对我有用。这将返回错误代码 [500],即内部错误。
import requests
lc_InvestorId = "1111"
lc_apikey = "xxxx"
lc_module = 'secondarymarket/listings'
url = f"https://api.lendingclub.com/api/investor/v1/{lc_module}"
payload = {}
params = {'updatedSince':10000}
headers = {
'ContentType': "application/json",
'Accept': "application/json",
'Authorization': lc_apikey,
'X-LC-Application-Key': lc_InvestorId
}
response = requests.request("GET", url, data=payload, headers=headers, params=params)