- Get started
- Structure
- Body Elements
- Objects
A Connected Web Feed File is a JSON or JSONP encoded file which contains a list of contents to be distributed.
This file has the same scope of old RSS or Atom files.
Optional parameters are indicated as "(Optional)".
Parameter | Meaning | Notes |
---|---|---|
type (string) | The type of file. |
|
cwversion (float) | The version of the Connected Web format. |
|
name (string) | The name of the feed. |
|
description (string) (optional) | The description of the feed. |
|
keywords (array) (optional) | A list of keywords. |
|
source (string) | The url to a Connected Web Source File. |
|
contents (array of contents) | The list of contents included in the file. |
|
language (string) | The language of the feed. |
|
cache (cache_object) (optional) | The cache preferences. |
|
{
"type": "feed",
"cwversion": 1.1,
"name": "ConnectedWeb - Showcase",
"description": "This is an example of a Connected Web Feed.",
"keywords": "connected, web, feed, example",
"source": "http://showcase.connectedweb.org/source/",
"cache": {
"cacheable": 1,
"expiresAfter": 60000
},
"contents": [{
"title": "This is a simple content",
"pubTime": 1491255023,
"body": [{
"type": "text",
"data": {
"value": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
}
}]
}]
}