This project is read-only.

Sample does not work due to Netflix OData API changing


Hi Guys,
The example provided with the source code doesn't work any more due to the API changing on the Netflix end.
Getting this error -
2010-03-27 23:58:20.144 NetFlix[16689:207]
Response Code: 404
2010-03-27 23:58:20.145 NetFlix[16689:207]
Response: <?xml version="1.0" encoding="utf-8" standalone="yes"?>
<error xmlns="">
<message xml:lang="en-US">Resource not found for the segment 'CatalogTitles'.</message>
2010-03-27 23:58:20.173 NetFlix[16689:207] status code: 404 (not found)
2010-03-27 23:58:20.174 NetFlix[16689:207]
2010-03-27 23:58:20.174 NetFlix[16689:207] {
"Cache-Control" = private;
"Content-Length" = 253;
"Content-Type" = "application/xml";
Dataserviceversion = "1.0;";
Date = "Sat, 27 Mar 2010 23:58:20 GMT";
Expires = "Sat, 27 Mar 2010 23:58:50 GMT";
Server = "Microsoft-IIS/7.0";
Vary = "*";
"X-Aspnet-Version" = "2.0.50727";
"X-Powered-By" = "ASP.NET";

2010-03-27 23:58:20.175 NetFlix[16689:207]

objc[16689]: objc_exception_throw failed


huygir wrote May 19, 2010 at 3:20 PM

Here's the fix: regen the .h and .m for the netflix URL metadata given in the user's guide. Then fix the couple of lines in the RootViewController that reference "CatalogTitle". It is now just "Title" and for the table cell description call [catalogTitle getShortTitle] instead of the call they have. Works fine in the simulator - will not run on the phone because the library was compiled for the "wrong" architecture.

claudioc wrote May 19, 2010 at 7:33 PM

The NetFlix service changes since we released the CTP. We will update the sample when the V1.0 version will be released.

windrago wrote Dec 15, 2010 at 5:26 PM

iOS: how do you regen the .h/.m?

wrote Feb 14, 2013 at 8:26 PM