Skip to content

Instantly share code, notes, and snippets.

@heymatthenry
Created March 27, 2012 19:41
Show Gist options
  • Select an option

  • Save heymatthenry/2219614 to your computer and use it in GitHub Desktop.

Select an option

Save heymatthenry/2219614 to your computer and use it in GitHub Desktop.
Schema for data returned from feed API
{
"feed" : {
"title" : "The feed's name",
"items" : [{
"author" : "Author's name",
"content" : "The full text/html content of the feed item",
"description" : "Item synopsis",
"media" : {
"type" : "The MIME type of the media item",
"url" : "URL for media resource",
"thumbnail" : "URL for thumbail",
"bitrate" : 'Numerical bitrate',
"duration" : 'Numerical duration',
"fileSize" : 'Numerical filesize',
"height" : 'Numerical height',
"width": "Numerical width"
},
"link" : "URL of the item",
"pubDate" : "date the item was published",
"title" : "String containing the article's title"
}]
}
}
@dim882
Copy link

dim882 commented Mar 28, 2012

How would an MRSS feed with video be represented?

@heymatthenry
Copy link
Author

I think this covers all of the MRSS properties they use. I replaced "enclosure" with "media" which can do double duty keying off of the type property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment