Netflix:在新的远程数据可用时获取新的远程数据
我希望这是一个合适的问题:我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没错,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.