Netflix OData API iPhone:访问的不仅仅是标题

发布于 2024-08-26 05:23:52 字数 419 浏览 5 评论 0原文

Netflix 最近刚刚宣布他们有一个新的 OData API,它使开发人员可以访问更多的目录,这正是我一直在寻找的。此外,在 odata.org 上,他们有一个示例 iPhone Objective-C SDK,可以访问 Netflix odata API 并使用 navigationcontrollertableview 中显示一些电影标题。

http://odataobjc.codeplex.com/

我现在只是在闲逛,我想访问的不仅仅是目录标题,但我不知道如何访问。最好,我想推送另一个视图控制器,该控制器将实现一个可以显示概要等的页面。关于如何访问电影的其他数据元素有什么建议吗?

Netflix just recently announced that they have a new OData API which gives developers access to more of their catalog and is exactly what I've been looking for. Also, on odata.org they have a sample iPhone Objective-C SDK that accesses the Netflix odata API and displays a few movie titles in a tableview with a navigationcontroller.

http://odataobjc.codeplex.com/

I'm just messing around right now and I would like to access more than just the catalog titles but I have no idea how to. Preferably, I would like to just push another view controller that will implement a page that can display the synopsis etc. Any suggestions on how to access the other data elements of a movie?

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

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

发布评论

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

评论(1

风透绣罗衣 2024-09-02 05:23:52

除了标题之外您无法访问其他任何内容是什么意思?可以像这样检索概要

http://odata.netflix.com/Catalog/Titles( '13dk1')/Synopsis

或者如果您想要电影的概要和名称,您可以使用

http:// odata.netflix.com/Catalog/Titles('13dk1')?$select=Name,Synopsis

或者您可以将其与过滤器运算符结合使用,如下所示

http://odata.netflix.com/Catalog/Titles?$filter=Name%20eq%20'Avatar'&$select=Name,Synopsis

What do you mean that you cant access anything else than the title? Synopsis can be retrieved like this

http://odata.netflix.com/Catalog/Titles('13dk1')/Synopsis

or if you want the synopsis and name of a movie you can use

http://odata.netflix.com/Catalog/Titles('13dk1')?$select=Name,Synopsis

or you can combine it with the Filter operator like this

http://odata.netflix.com/Catalog/Titles?$filter=Name%20eq%20'Avatar'&$select=Name,Synopsis

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