NFL 有一个 API 服务。link: https://api.nfl.com/docs/getting-started/index.html https://api.nfl.com/docs/getting-started/index.html
为了进行 api 调用,我们需要 Oauth2 访问令牌。
为了生成它,我们需要点击/oauth/令牌body 中带有参数 client_id 和 client_secret 的端点。现在我找不到任何有关如何生成 client_id 和 client_secret 的文档。
我发现的另一种方法是创建一个新用户,它只需要您传递必要的参数,如用户名、密码等,然后给出一个新的访问令牌。但这样做也会给出未经授权的 401。
所以我做错了。如果有人过去使用过这个 api,请分享你是如何做到的。我还在这里发现了关于同一主题的另一个问题link : 如何为 NFL Shield API 创建访问令牌? https://stackoverflow.com/questions/40680510/how-would-i-create-an-access-token-for-the-nfl-shield-api但它没有任何答案。我正在分享两个与身份验证相关的文档的链接。
https://api.nfl.com/docs/identity/oauth2/index.html https://api.nfl.com/docs/identity/oauth2/index.html
https://api.nfl.com/docs/identity/register/index.html https://api.nfl.com/docs/identity/register/index.html
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)