python - 试图获取私有 api 的访问令牌
问题描述
我正在尝试从 Synthesio 访问私有 API。他们的参考资料帮助不大。
我试过以下...
requests.get("https://rest.synthesio.com/security/v2/oauth/token?grant_type=foo&scope=bar&secret=client_sectet&key=client_id").json()
我收到了 405
{'errors': [{'code': 'invalid_method', 'meta': {'accepted': 'OPTIONS, POST', 'used': 'GET'}}]}
这没有意义,因为我使用的是公认的方法,get。
有谁知道我怎样才能使这项工作?我错过了什么?