Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Insert Subtitle
 
 
Founded in 1851 – original price one cent Largest metro newspaper in the U.S. 101 Pulitzer Prizes 11 national bureaus and ...
 
 
That’s us!
 
 
Core Purpose
Core Purpose <ul><li>Enhance society by  creating ,  collecting  and  distributing  high quality news, information and ent...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
APIs
APIs NY State Legislature member and committee info. Times Tags NYT standardized terms TimesPeople profile and activity da...
http://developer.nytimes.com
http://open.nytimes.com
 
 
 
 
 
 
 
Let’s Build Something <ul><li>Grab a TimesPeople user’s network recommendations and sync them to InstaPaper </li></ul>
TimesPeople
TimesPeople
TimesPeople
TimesPeople
 
Goal <ul><li>Grab my network’s recommendations and sync them to InstaPaper </li></ul>
TimesPeople API <ul><li>Retrieve Users  </li></ul><ul><ul><li>Profile </li></ul></ul><ul><ul><li>Activities </li></ul></ul...
User Lookup <ul><li>http://api.nytimes.com/svc/timespeople/api/ </li></ul><ul><li>v1/user/2eaf32ad1f520768c2ff97c9689fb94c...
Get the User’s Newsfeed <ul><li>http://api.nytimes.com/svc/timespeople/api/ </li></ul><ul><li>v1/user/ 52396025 /newsfeed....
YQL
YQL for User Lookup
 
 
insert   into  yql.storage.admin (value)  values  ('foo');
 
YQL for User’s Newsfeed
 
YQL for InstaPaper
 
 
On to the Code…
Execute YQL
Lookup User ID
Get Newsfeed
Filter, Uniq, Count & Sort Recommendations
Insert Into InstaPaper
Big Slide of Code - Review
 
 
 
 
 
Resources <ul><li>Code -  http://github.com/derekg/  TimesPeople-InstaPaper-Sync </li></ul><ul><li>Demo -  http://tp-ip-sy...
More Coding Fun <ul><li>Article Search API  </li></ul><ul><ul><li>Facets: The Hidden Secret </li></ul></ul>
NYT Article Trender
APIs NY State Legislature member and committee info. Times Tags NYT standardized terms TimesPeople profile and activity da...
And now for the totally useless
And now for the totally useless   MJ + News
And now for the totally useless   MJ + News <ul><li>Echo Nest API + TimesWire API + Code </li></ul><ul><li>= </li></ul><ul...
The APIs  http://developer.nytimes.com The blog  http://open.nytimes.com
Upcoming SlideShare
Loading in …5
×

Open Hack NYC - Yahoo - Oct 2009

3,969 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
  • Be the first to comment

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

×