我开始使用 Questrade API,但无法正常工作,
我被困在本教程 https://www.questrade.com/api/documentation/getting-started 的第 4 阶段。
我有一个模拟账户,所以我正在尝试向 https://practicelogin.questrade.com/oauth2/token?grant_type=refresh_token&refresh_token={my_token}
发送请求
但它不起作用。
如果我尝试使用 chrome 浏览到该 url,我会遇到登录界面并且无法通过它(卡在用户名和密码登录并重定向到 https://practicelogin.questrade.com/APISignin.aspx?ReturnUrl=%2fOAuth2%2fErrors%2fGenericError.aspx%3faspxerrorpath%3d%2foauth2%2ftoken&aspxerrorpath=/oauth2/token
)。
当我使用 python 尝试 requests.get(url)
时,我得到与 html 相同的界面(不足为奇)。
谁能告诉我我做错了什么?我真的被困住了。