From 7300dddd5249dbabc71d44259dc823f86379d23a Mon Sep 17 00:00:00 2001
From: =?utf8?q?Stefan=20K=C3=B6gl?=
Date: Tue, 11 Jan 2011 10:59:25 +0200
Subject: [PATCH] include detailed description in index.html
---
feedservice/index.html | 58 ++++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 49 insertions(+), 9 deletions(-)
diff --git a/feedservice/index.html b/feedservice/index.html
index d7a15d8..07e2dc9 100644
--- a/feedservice/index.html
+++ b/feedservice/index.html
@@ -12,7 +12,17 @@
returning the simplified contents as JSON.
Usage
- Parameters to /parse (either GET or POST)
+
+
Examples
+
+ curl http://mygpo-feedservice.appspot.com/parse?url=http://feeds.feedburner.com/linuxoutlaws&inline_logo=1&scale_logo=30
+ curl http://mygpo-feedservice.appspot.com/parse?url=http://leo.am/podcasts/floss&url=http://feeds.twit.tv/floss_video_large
+ curl http://mygpo-feedservice.appspot.com/parse?url=http://www.dancarlin.com/cswdc.xml
+ curl -d url=http://feeds.feedburner.com/linuxoutlaws http://mygpo-feedservice.appspot.com/parse
+
+
+ Requests
+ Parameters to /parse (either GET or POST as application/x-www-form-urlencoded)
- url: The URL of the feed that should be parsed (required). This parameter can be repeated multiple times. The values can be URL-encoded.
- inline_logo: If set to 1, the (unscaled) logos are included in the response as data URIs (default 0).
@@ -20,14 +30,44 @@
- Examples:
-
- curl http://mygpo-feedservice.appspot.com/parse?url=http://feeds.feedburner.com/linuxoutlaws&inline_logo=1&scale_logo=30
- curl http://mygpo-feedservice.appspot.com/parse?url=http://leo.am/podcasts/floss&url=http://feeds.twit.tv/floss_video_large
- curl http://mygpo-feedservice.appspot.com/parse?url=http://www.dancarlin.com/cswdc.xml
- curl -d url=http://feeds.feedburner.com/linuxoutlaws http://mygpo-feedservice.appspot.com/parse
-
-
+ Responses
+
+ - Each response contains a list of feeds, at least one for each url-Parameter
+ - HTTP-Redirects are followed automatically (this is reflected in the urls field)
+ - RSS-Redirects are followed by additionally including the new feed in the response
+ - Each feed contains
+
+ - title: the title of the feed
+ - link: the feeds website
+ - description: a description of the feed, potentially including HTML characters
+ - author: the feed's author
+ - language: the feed's language
+ - urls: the redirect-chain of the URL passed in the url parameter. This can be used to match the requested URLs to the entries in the response.
+ - new_location: the referred to location, if the feed uses RSS-Redirects. The new location will also be included in the response
+ - logo: the URL of the feed's logo
+ - logo_data: the feed's logo as a data URI, if inline_logo has been used
+ - content_types: the content types of the feed, either audio, video or image
+ - episodes: the list of episodes
+
+
+ - Each episode contains
+
+ - title: the title of the episode
+ - description: the description of the episode, potentially including HTML characters
+ - link: the website link for the episode
+ - timestamp: the timestamp of the episode's release in ISO 8601 (%Y-%m-%dT%H:%M:%S)
+ - author: the episode's author
+ - duration: the episode's duration in seconds
+ - language: the episode's language
+ - files: a list of all files linked by the episode. Each files is represented by an object containing url, filesize and mimetype. See below for description
+ - url: The URL of the first linked file
+ - filesize: the size of the first linked file in Byte
+ - mimetype: the mimetype of the first linked file
+
+
+
+
+ Using this Instance
If you intend to use this instance of the webservice in your
application, please contact