Skip to content

NickHeiner/wp-cornell-daily-sun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wp-cornell-daily-sun

Windows Phone newsreader for the Cornell Daily Sun

API

This app depends on two APIs made available by CornellSun.com. The interaction with these APIs takes place in the SunData class. Here they are, in order of use:

GET sections

Endpoint: /sections.json Result:

{
  sections: [
    { name: 'Opinion', vid: 1},
    { name: 'Sports',  vid: 2},   
    // etc
  ]
}

Each Section is represented by an instance of the Section class.

GET stories

Endpoint: section/wp7/stories/<sectionId>?page=<pageNumber> Result:

{
  nodes: [
    {
      Body:             'the full text of the story',
      Title:            'The Title of the Story',
      Teaser:           'A quick blurb summarizing the story',
      Nid:               2342, // id for this story; uniquely identifies it amongst all stories
      Vid:               2     // the id of the section that this story belongs to
      field_images_nid: 'http:\/\/cornellsun.com\/files\/images\/Pg-3-tcat---VGao-S.preview.jpg' // a thumbnail url
      Date:             '2 September 2013' // a display-ready string representation of the date
    },
    // ... etc
  ]
}

Each Story is parsed into an instance of the StoryJson class.

History

This app was made by Nick Heiner in Fall 2010 and updated in Fall 2011, in cooperation with James Elkins and Rahul Kishore, the respective web editors of the Sun at the time. It lived in the Cornell Sun svn repo for a long time, until Nick decided to open source it and dump it on github. For more detail, see the colophon.

About

Windows Phone newsreader for the Cornell Daily Sun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages