Netflix:在新的远程数据可用时获取新的远程数据

发布于 2024-09-26 13:53:23 字数 150 浏览 2 评论 0原文

我希望这是一个合适的问题:我正在使用 Netflix API,我想知道在呈现新数据时能够自动接收新数据的最佳方式是什么(在这种情况下,当 Netflix 用户看完一部最近观看的电影时) )我能想到的唯一方法是每隔一段时间就发送垃圾邮件请求来查询他们的提要。 PHP 会是我最好的选择吗?

I hope this is an appropriate question: I'm using the Netflix API and I'm wondering what the best way one would be able to automatically receive new data when presented (in this case, recently watched films when a Netflix user finishes watching one) The only way I can think of is spamming requests in intervals to query their feed. And would PHP be my best bet?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

木落 2024-10-03 13:53:23

没错,Netflix 不通过其 API 提供任何推送通知。您必须定期轮询他们的提要,但不要太频繁:您的消费者密钥仅限于每秒一定数量的请求和每天的请求。

我不太确定你想做什么,想知道 PHP 是否是正确的选择。 OAuth 库几乎适用于所有主要语言,因此这取决于您。

That's right, Netflix doesn't provide any push notifications through their API. You'll have to poll their feed periodically, but not too often: your consumer key is limited to a certain number of requests per second and requests per day.

I'm not exactly sure what you're trying to do, to know whether PHP would be the right choice. OAuth libraries are available for pretty much every major language, so it's up to you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文