Netflix & Withings connectors, and a Vim plugin for making sense of epoch dates

37 views
Skip to first unread message

Beau Gunderson

unread,
Mar 17, 2012, 2:23:31 PM3/17/12
to singl...@googlegroups.com
After talking to Jeremie yesterday I went ahead and wrote a Netflix connector:


It just does viewing history right now because there doesn't seem to be an endpoint that returns all of a user's ratings; you have to query by each individual title (lame!).

I used the same OAuth query string mangling that I wrote for the Withings connector so it ended up being pretty simple. I also used xml2js to wrangle their XML-only API to JSON. In the process of writing the Netflix connector I figured out the pagination issues from the Withings connector, so that's ready for testing now too.

I noticed that there's a 2.0 API for Netflix that's in "preview" mode that supports JSON output. It doesn't support ratings, however.

One possible way to get a partial set of a user's ratings would be to request the rating for all of the titles in the queue and the viewing history. In researching this I found an app in Ruby that uses this method:


While writing these connectors I also wrote a Vim mini-plugin that might be of use to people; it will show you a human-readable date if you use <leader>j when your cursor is on a UNIX epoch date that includes milliseconds (like the dates in me.json):


Pull requests are here:

Reply all
Reply to author
Forward
0 new messages