Netflix OData API iPhone:访问的不仅仅是标题
Netflix 最近刚刚宣布他们有一个新的 OData API,它使开发人员可以访问更多的目录,这正是我一直在寻找的。此外,在 odata.org 上,他们有一个示例 iPhone Objective-C SDK,可以访问 Netflix odata API 并使用 navigationcontroller
在 tableview
中显示一些电影标题。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除了标题之外您无法访问其他任何内容是什么意思?可以像这样检索概要
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