您如何访问NFL的API? [英] How do you access the NFL's API's?

查看:50
本文介绍了您如何访问NFL的API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图从NFL.com访问或找到访问数据的方法,但尚未找到它.这些网站上有公共文档:

I've been trying to access or find away to access data from NFL.com, but have not found it yet. There is public documentation on these sites:

https://api.nfl.com/docs/identity/oauth2/index.html

但是这些文档没有告诉您如何获取客户端ID或客户端机密.

but these docs do not tell you how to get a client id or client secret.

我也尝试过:

http://api.fantasy.nfl.com/v2/docs

文档说,您需要发送电子邮件至fantasy.football@nfl.com以获得应用程序密钥.我不久前发送了一封电子邮件,并进行了后续跟踪,但没有收到任何回复.

The documentation says that you need to send an email to fantasy.football@nfl.com to get the app key. I sent an email a while ago and a follow up and I've received no responses.

您可以将请求发送到这些API,它们将响应并告诉您您具有无效的凭据.

You can send requests to these API's and they will respond telling you that you have invalid credentials.

您在此方面取得了成功吗?难道我做错了什么?这些网站是否过时了?

Have you had any success with this? Am I doing something wrong? Are these sites out of date?

我在2015年10月30日通过电子邮件发送了邮件

I emailed them on 10/30/2015

推荐答案

虽然我在api.nfl.com上没有取得任何成功,但是我仍然能够从api.fantasy.nfl.com上获取一些数据.您应该具有对所有/players/*端点的读取权限(例如

While I haven't had any success with api.nfl.com, I am able to get some data from the api.fantasy.nfl.com. You should have read access to all of the /players/* endpoints (e.g. http://api.fantasy.nfl.com/v1/players/stats?statType=seasonStats&season=2010&week=1&format=json). I would think you need an auth token for the league endpoints and the write endpoints.

您多久以前给他们发送电子邮件了?

How long ago did you email them?

编辑: 我给NFL发了电子邮件,这就是他们所说的:我们已经将您的API请求传递给了我们的产品和策略团队.NFL.comFantasy API可以根据具体情况按情况使用合作伙伴.我们的团队会审核其他请求,但通常我们的API不能用于外部使用."

EDIT: I emailed the NFL and this is what they had to say: "We've passed your API request along to our product and strategy teams. NFL.com Fantasy APIs are available on a per-use, case-by- case basis for NFL partners. Our team reviews other requests, but our APIs are typically not available for external usage otherwise."

这篇关于您如何访问NFL的API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆