Open Hack NYC - Yahoo - Oct 2009

3,895 views

Published on

This presentation was given Oct 9 2009 at Yahoo!'s OpenHack NYC event. Reviews NYTimes TimesOpen Developer strategy, all 11 nytimes API, and a sample app builtin using the TimesPeople APIs and InstaPaper APIs.
Code: http://github.com/derekg/TimesPeople-InstaPaper-Sync

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,895
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
36
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Open Hack NYC - Yahoo - Oct 2009

  1. Insert Subtitle
  2.  
  3.  
  4. Founded in 1851 – original price one cent Largest metro newspaper in the U.S. 101 Pulitzer Prizes 11 national bureaus and 26 foreign bureaus 1904 - moved to Long Acre Square
  5.  
  6.  
  7. That’s us!
  8.  
  9.  
  10. Core Purpose
  11. Core Purpose <ul><li>Enhance society by creating , collecting and distributing high quality news, information and entertainment. </li></ul>
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. APIs
  28. APIs NY State Legislature member and committee info. Times Tags NYT standardized terms TimesPeople profile and activity data Movie Reviews reviews, summaries, critics’ picks Campaign Finance campaign contribution & expenditure data Congressional Votes voting and member info. Article Search 1981 to now, facets, metadata TimesWire up-to-the-minute links and metadata Real Estate aggregate listings and sales data Community user-generated comments Bestsellers rankings, lists, reviews
  29. http://developer.nytimes.com
  30. http://open.nytimes.com
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38. Let’s Build Something <ul><li>Grab a TimesPeople user’s network recommendations and sync them to InstaPaper </li></ul>
  39. TimesPeople
  40. TimesPeople
  41. TimesPeople
  42. TimesPeople
  43.  
  44. Goal <ul><li>Grab my network’s recommendations and sync them to InstaPaper </li></ul>
  45. TimesPeople API <ul><li>Retrieve Users </li></ul><ul><ul><li>Profile </li></ul></ul><ul><ul><li>Activities </li></ul></ul><ul><ul><li>Newsfeed </li></ul></ul><ul><ul><li>Followers </li></ul></ul><ul><ul><li>Following </li></ul></ul><ul><li>User Lookup </li></ul><ul><ul><li>MD5 hash of e-mail </li></ul></ul>
  46. User Lookup <ul><li>http://api.nytimes.com/svc/timespeople/api/ </li></ul><ul><li>v1/user/2eaf32ad1f520768c2ff97c9689fb94c/ </li></ul><ul><li>id.xml?api-key=#### </li></ul>
  47. Get the User’s Newsfeed <ul><li>http://api.nytimes.com/svc/timespeople/api/ </li></ul><ul><li>v1/user/ 52396025 /newsfeed.xml?api-key=#### </li></ul>
  48. YQL
  49. YQL for User Lookup
  50.  
  51.  
  52. insert into yql.storage.admin (value) values ('foo');
  53.  
  54. YQL for User’s Newsfeed
  55.  
  56. YQL for InstaPaper
  57.  
  58.  
  59. On to the Code…
  60. Execute YQL
  61. Lookup User ID
  62. Get Newsfeed
  63. Filter, Uniq, Count & Sort Recommendations
  64. Insert Into InstaPaper
  65. Big Slide of Code - Review
  66.  
  67.  
  68.  
  69.  
  70.  
  71. Resources <ul><li>Code - http://github.com/derekg/ TimesPeople-InstaPaper-Sync </li></ul><ul><li>Demo - http://tp-ip-sync.appspot.com </li></ul>
  72. More Coding Fun <ul><li>Article Search API </li></ul><ul><ul><li>Facets: The Hidden Secret </li></ul></ul>
  73. NYT Article Trender
  74. APIs NY State Legislature member and committee info. Times Tags NYT standardized terms TimesPeople profile and activity data Movie Reviews reviews, summaries, critics’ picks Campaign Finance campaign contribution & expenditure data Congressional Votes voting and member info. Article Search 1981 to now, facets, metadata TimesWire up-to-the-minute links and metadata Real Estate aggregate listings and sales data Community user-generated comments Bestsellers rankings, lists, reviews
  75. And now for the totally useless
  76. And now for the totally useless MJ + News
  77. And now for the totally useless MJ + News <ul><li>Echo Nest API + TimesWire API + Code </li></ul><ul><li>= </li></ul><ul><li>The Worst Podcast Ever </li></ul>
  78. The APIs http://developer.nytimes.com The blog http://open.nytimes.com

×