Skip to content
Permalink
Browse files

Feeds - Read JSON ATOM like feed

  • Loading branch information...
duboisp committed Jan 10, 2019
1 parent 2c5fdc3 commit 8eb8c25d02cbdfeedb753ed0ce0008802f7bb5f5
@@ -213,9 +213,46 @@
</section>
</section>

<section>
<h3 id="json-atom-like-feed">Converting ATOM XML feed into JSON ATOM like format</h3>
<p>Here is the skeleton structure for the feed:</p>

<pre><code>{
"feed": {
"entry": [
{
"title": "[Title of the entry]",
"updated": "[UTC date format]",
"link": "[URL]"
},

...
]
}
}</code></pre>
<p>Notes:</p>
<ul>
<li>Replace <code>...</code> in each entry and remove the ending comas for the least entry.</li>
<li>The Feed plugin would ignore any meta information added to describe the feed. However we recommend that your feed contains self-describing information.</li>
</ul>

<p>Alias for "Publication date" of each entry:</p>
<ul>
<li><code>publishedDate</code></li>
<li><code>published</code></li>
<li><code>pubDate</code></li>
<li><code>updated</code></li>
</ul>
<p>Alias for "Link" of each entry:</p>
<ul>
<li><code>link</code></li>
<li><code>href</code></li>
</ul>
</section>

<section>
<h2>Configuration options</h2>
<p>Document the public configuration options that can be used by implementers or developers.</p>
<p>These are the configuration options that can be used by implementers or developers.</p>
<table class="table">
<thead>
<tr>
@@ -232,7 +269,9 @@
<td>Add the <code>limit-x</code> class after the <code>wb-feeds</code> class and replace <code>x</code> with an integer.</td>
<td>
<dl>
<dt><code>limit-4</code> (default):</dt>
<dt>default (not specified)</dt>
<dd>Display all the entries of the feeds</dd>
<dt><code>limit-4</code>:</dt>
<dd>Limits display to four items.</dd>
</dl>
</td>
@@ -255,7 +294,7 @@

<section>
<h2>Events</h2>
<p>Document the public events that can be used by implementers or developers.</p>
<p>These are the public events that can be used by implementers or developers.</p>
<table class="table">
<thead>
<tr>
@@ -215,6 +215,43 @@
</section>
</section>

<section lang="en">
<h3 id="json-atom-like-feed">Converting ATOM XML feed into JSON ATOM like format</h3>
<p>Here is the skeleton structure for the feed:</p>

<pre><code>{
"feed": {
"entry": [
{
"title": "[Title of the entry]",
"updated": "[UTC date format]",
"link": "[URL]"
},

...
]
}
}</code></pre>
<p>Notes:</p>
<ul>
<li>Replace <code>...</code> in each entry and remove the ending comas for the least entry.</li>
<li>The Feed plugin would ignore any meta information added to describe the feed. However we recommend that your feed contains self-describing information.</li>
</ul>

<p>Alias for "Publication date" of each entry:</p>
<ul>
<li><code>publishedDate</code></li>
<li><code>published</code></li>
<li><code>pubDate</code></li>
<li><code>updated</code></li>
</ul>
<p>Alias for "Link" of each entry:</p>
<ul>
<li><code>link</code></li>
<li><code>href</code></li>
</ul>
</section>

<section>
<h2>Options de configuration</h2>
<p>Documente les options de configuration publiques qui peuvent être utilisées par les intégrateurs ou les développeurs.</p>
@@ -234,7 +271,9 @@
<td>Ajouter la classe <code>limit-x</code> après la classe <code>wb-feeds</code> et remplacer <code>x</code> avec nombre entier.</td>
<td>
<dl>
<dt><code>limit-4</code> (défaut):</dt>
<dt>défault (non spécifié)</dt>
<dd>Affiche toutes les entrées du fil de syndication</dd>
<dt><code>limit-4</code>:</dt>
<dd>Limite l'affichage à quatre items.</dd>
</dl>
</td>
@@ -0,0 +1,233 @@
{
"feed": {
"title": "Canada News Centre - Manitoba",
"subtitle": "Canada News Centre",
"updated": "2018-10-25T08:50:38-04:00",
"link": "https://www.canada.ca/en/news/web-feeds/manitoba",
"id": "https://www.canada.ca/en/news.html",
"logo": "https://www.canada.ca/etc/designs/canada/wet-boew/assets/wmms-blk.svg",

"entry": [
{
"title": "Government of Canada recognizes Eagle Urban Transition Centre in supporting First Nations children off-reserve through Jordan's Principle",
"updated": "2018-10-19T12:06:29-04:00",
"link": "https://www.canada.ca/en/indigenous-services-canada/news/2018/10/government-of-canada-recognizes-eagle-urban-transition-centre-in-supporting-first-nations-children-off-reserve-through-jordans-principle.html"
},
{
"title": "Robert Falcon-Ouellette, Member of Parliament for Winnipeg Centre, to highlight success of Eagle Urban Transition Centre in supporting First Nations children in Winnipeg",
"updated": "2018-10-18T12:20:46-04:00",
"link": "https://www.canada.ca/en/indigenous-services-canada/news/2018/10/robert-falcon-ouellette-member-of-parliament-for-winnipeg-centre-to-highlight-success-of-eagle-urban-transition-centre-in-supporting-first-nations-.html"
},
{
"title": "Government of Canada recognizes the National Historic Significance of the Dominion Exhibition Display Building No. 2",
"updated": "2018-10-18T10:15:00-04:00",
"link": "https://www.canada.ca/en/parks-canada/news/2018/10/government-of-canada-recognizes-the-national-historic-significance-of-the-dominion-exhibition-display-building-no-2.html"
},
{
"title": "Dominion Exhibition Display Building No. 2, Brandon, Manitoba",
"updated": "2018-10-18T10:15:00-04:00",
"link": "https://www.canada.ca/en/parks-canada/news/2018/10/dominion-exhibition-display-building-no-2-brandon-manitoba.html"
},
{
"title": "Government of Canada Recognizes the National Historic Significance of Dominion Exhibition Display Building No. 2",
"updated": "2018-10-16T08:30:00-04:00",
"link": "https://www.canada.ca/en/parks-canada/news/2018/10/government-of-canada-recognizes-the-national-historic-significance-of-dominion-exhibition-display-building-no-2.html"
},
{
"title": "CBSA opens expanded Emerson border crossing",
"updated": "2018-10-12T11:30:00-04:00",
"link": "https://www.canada.ca/en/border-services-agency/news/2018/10/cbsa-opens-expanded-emerson-border-crossing.html"
},
{
"title": "Official opening for expanded Emerson border crossing",
"updated": "2018-10-11T15:37:52-04:00",
"link": "https://www.canada.ca/en/border-services-agency/news/2018/10/official-opening-for-expanded-emerson-border-crossing.html"
},
{
"title": "Governments of Canada and Manitoba strengthen the aerospace industry",
"updated": "2018-10-10T11:38:00-04:00",
"link": "https://www.canada.ca/en/western-economic-diversification/news/2018/10/governments-of-canada-and-manitoba-strengthen-the-aerospace-industry.html"
},
{
"title": "Minister Bains to announce funding for Manitoba’s aerospace industry and participate in fireside chat with Winnipeg business community",
"updated": "2018-10-09T11:50:12-04:00",
"link": "https://www.canada.ca/en/innovation-science-economic-development/news/2018/10/minister-bains-to-announce-funding-for-manitobas-aerospace-industry-and-participate-in-fireside-chat-with-winnipeg-business-community.html"
},
{
"title": "Canadian astronaut David Saint-Jacques to give virtual presentation to over 1,000 Canadian students",
"updated": "2018-10-04T09:22:46-04:00",
"link": "https://www.canada.ca/en/space-agency/news/2018/10/canadian-astronaut-david-saint-jacques-to-give-virtual-presentation-to-over-1000-canadian-students.html"
},
{
"title": "Canada congratulates Sioux Valley Dakota Nation on its latest addition to reserve. New reserve land will support economic growth for the community.",
"updated": "2018-09-24T12:18:34-04:00",
"link": "https://www.canada.ca/en/crown-indigenous-relations-northern-affairs/news/2018/09/canada-congratulates-sioux-valley-dakota-nation-on-its-latest-addition-to-reservenew-reserve-land-will-support-economic-growth-for-the-community.html"
},
{
"title": "Canada congratulates Sioux Valley Dakota Nation on the opening of its new Department of Families",
"updated": "2018-09-22T18:47:44-04:00",
"link": "https://www.canada.ca/en/indigenous-services-canada/news/2018/09/canada-congratulates-sioux-valley-dakota-nation-on-the-opening-of-its-new-department-of-families.html"
},
{
"title": "Sioux Valley Dakota Nation, Canada and Manitoba sign Framework Agreement on Reconciliation",
"updated": "2018-09-22T18:47:29-04:00",
"link": "https://www.canada.ca/en/crown-indigenous-relations-northern-affairs/news/2018/09/sioux-valley-dakota-nation-canada-and-manitoba-sign-framework-agreement-on-reconciliation.html"
},
{
"title": "Manitoba Metis Federation and Government of Canada announce joint action plan on Advancing Reconciliation",
"updated": "2018-09-22T11:19:47-04:00",
"link": "https://www.canada.ca/en/crown-indigenous-relations-northern-affairs/news/2018/09/manitoba-metis-federation-and-government-of-canada-announce-joint-action-plan-on-advancing-reconciliation.html"
},
{
"title": "Parliamentary Secretary Dan Vandal to highlight improvements in early learning and child care for Metis children during Manitoba Metis Federation Annual General Assembly in Winnipeg",
"updated": "2018-09-21T14:57:39-04:00",
"link": "https://www.canada.ca/en/employment-social-development/news/2018/09/parliamentary-secretary-dan-vandal-to-highlight-improvements-in-early-learning-and-child-care-for-metis-children-during-manitoba-metis-federation-a.html"
},
{
"title": "Minister Bennett and MMF President Chartrand to make reconciliation announcement at the Manitoba Metis Federation’s 2018 Annual General Assembly",
"updated": "2018-09-21T11:12:58-04:00",
"link": "https://www.canada.ca/en/crown-indigenous-relations-northern-affairs/news/2018/09/minister-bennett-and-mmf-president-chartrand-to-make-reconciliation-announcement-at-the-manitoba-metis-federations-2018-annual-general-assembly.html"
},
{
"title": "Minister Bennett to make an announcement on advancements in reconciliation and renewed relationships with Sioux Valley Dakota Nation",
"updated": "2018-09-21T10:00:26-04:00",
"link": "https://www.canada.ca/en/crown-indigenous-relations-northern-affairs/news/2018/09/minister-bennett-to-make-an-announcement-on-advancements-in-reconciliation-and-renewed-relationships-with-sioux-valley-dakota-nation0.html"
},
{
"title": "Backgrounder: Winnipeg drivers to enjoy safer more efficient roadways",
"updated": "2018-09-14T15:30:21-04:00",
"link": "https://www.canada.ca/en/office-infrastructure/news/2018/09/backgrounder-winnipeg-drivers-to-enjoy-safer-more-efficient-roadways.html"
},
{
"title": "Winnipeg drivers to enjoy safer more efficient roadways",
"updated": "2018-09-14T15:30:02-04:00",
"link": "https://www.canada.ca/en/office-infrastructure/news/2018/09/winnipeg-drivers-to-enjoy-safer-more-efficient-roadways.html"
},
{
"title": "Government of Canada announces support for acquisition and repair of Churchill rail line by Arctic Gateway Group",
"updated": "2018-09-14T12:06:22-04:00",
"link": "https://www.canada.ca/en/western-economic-diversification/news/2018/09/government-of-canada-announces-support-for-acquisition-and-repair-of-churchill-rail-line-by-arctic-gateway-group.html"
},
{
"title": "New Owners for Hudson Bay Rail Line",
"updated": "2018-09-14T12:05:55-04:00",
"link": "https://www.canada.ca/en/western-economic-diversification/news/2018/09/arctic-gateway-group-purchases-omnitrax-companies-in-northern-manitoba.html"
},
{
"title": "Minister Carr announces an historic partnership in northern Manitoba",
"updated": "2018-09-13T19:10:28-04:00",
"link": "https://www.canada.ca/en/western-economic-diversification/news/2018/09/minister-carr-announces-an-historic-partnership-in-northern-manitoba.html"
},
{
"title": "Media Advisory -&#xa0;Winnipeg, Manitoba",
"updated": "2018-09-13T16:00:10-04:00",
"link": "https://www.canada.ca/en/office-infrastructure/news/2018/09/media-advisory--winnipeg-manitoba.html"
},
{
"title": "Lynn Lake Gold Project — Participant Funding Allocated",
"updated": "2018-09-11T15:08:23-04:00",
"link": "https://www.canada.ca/en/environmental-assessment-agency/news/2018/09/lynn-lake-gold-project--participant-funding-allocated.html"
},
{
"title": "Towards a Western Canada Growth Strategy",
"updated": "2018-09-11T14:54:13-04:00",
"link": "https://www.canada.ca/en/western-economic-diversification/news/2018/09/towards-a-western-canada-growth-strategy.html"
},
{
"title": "Norway House Cree Nation receives $100 million commitment from Government of Canada to build Health Centre of Excellence",
"updated": "2018-09-07T13:00:40-04:00",
"link": "https://www.canada.ca/en/indigenous-services-canada/news/2018/09/norway-house-cree-nation-receives-100-million-commitment-from-government-of-canada-to-build-health-centre-of-excellence.html"
},
{
"title": "Government of Canada investing nearly $68 million over three years to support First Nations-led health transformation",
"updated": "2018-09-06T15:15:03-04:00",
"link": "https://www.canada.ca/en/indigenous-services-canada/news/2018/09/government-of-canada-investing-nearly-68-million-over-three-years-to-support-first-nations-led-health-transformation.html"
},
{
"title": "Southeast Collegiate celebrates grand opening of their new state-of-the-art school facility in Winnipeg",
"updated": "2018-09-06T12:00:30-04:00",
"link": "https://www.canada.ca/en/indigenous-services-canada/news/2018/09/southeast-collegiate-celebrates-grand-opening-of-their-new-state-of-the-art-school-facility-in-winnipeg.html"
},
{
"title": "Minister Philpott to announce significant investments to support health programs and services in Norway House Cree Nation",
"updated": "2018-09-06T11:08:27-04:00",
"link": "https://www.canada.ca/en/indigenous-services-canada/news/2018/09/minister-philpott-to-announce-significant-investments-to-support-health-programs-and-services-in-norway-house-cree-nation.html"
},
{
"title": "Minister Philpott to visit Winnipeg and make announcements regarding First Nations education and health transformation",
"updated": "2018-09-05T10:13:59-04:00",
"link": "https://www.canada.ca/en/indigenous-services-canada/news/2018/09/minister-philpott-to-visit-winnipeg-and-make-announcements-regarding-first-nations-education-and-health-transformation.html"
},
{
"title": "Repairs to Begin Immediately on Northern Manitoba Rail",
"updated": "2018-08-31T18:49:52-04:00",
"link": "https://www.canada.ca/en/western-economic-diversification/news/2018/08/historic-deal-reached-repairs-to-begin-on-northern-manitoba-rail-line.html"
},
{
"title": "Government of Canada Supports Hemp Industry",
"updated": "2018-08-31T14:43:58-04:00",
"link": "https://www.canada.ca/en/agriculture-agri-food/news/2018/08/government-of-canada-supports-hemp-industry.html"
},
{
"title": "End of lockdown and search at Stony Mountain institution – Medium Security Unit and Maximum Security Unit",
"updated": "2018-08-29T14:23:52-04:00",
"link": "https://www.canada.ca/en/correctional-service/news/2018/08/end-of-lockdown-and-search-at-stony-mountain-institution--medium-security-unit-and-maximum-security-unit.html"
},
{
"title": "Canada congratulates Pauingassi First Nation on official opening of expanded water treatment plant and other water infrastructure progress",
"updated": "2018-08-29T13:58:32-04:00",
"link": "https://www.canada.ca/en/indigenous-services-canada/news/2018/08/canada-congratulates-pauingassi-first-nation-on-official-opening-of-expanded-water-treatment-plant-and-other-water-infrastructure-progress.html"
},
{
"title": "Lake Manitoba and Lake St. Martin Outlet Channels Project — Participant Funding Available",
"updated": "2018-08-29T13:33:30-04:00",
"link": "https://www.canada.ca/en/environmental-assessment-agency/news/2018/08/lake-manitoba-and-lake-st-martin-outlet-channels-project--participant-funding-available.html"
},
{
"title": "Members of Lake St. Martin First Nation continue return to rebuilt community with completion of 190 homes",
"updated": "2018-08-24T11:52:13-04:00",
"link": "https://www.canada.ca/en/indigenous-services-canada/news/2018/08/members-of-lake-st-martin-first-nation-continue-return-to-rebuilt-community-with-completion-of-190-homes.html"
},
{
"title": "Governments Invest in Beef and Forage Research to Support Growth in Manitoba's Livestock Sector",
"updated": "2018-08-24T10:11:49-04:00",
"link": "https://www.canada.ca/en/agriculture-agri-food/news/2018/08/governments-invest-in-beef-and-forage-research-to-support-growth-in-manitobas-livestock-sector.html"
},
{
"title": "Warning about Red River water levels",
"updated": "2018-08-21T11:20:55-04:00",
"link": "https://www.canada.ca/en/public-services-procurement/news/2018/08/warning-about-red-river-water-levels.html"
},
{
"title": "Margaret Laurence (1926-1987)",
"updated": "2018-08-10T14:15:00-04:00",
"link": "https://www.canada.ca/en/parks-canada/news/2018/08/margaret-laurence-1926-1987.html"
},
{
"title": "Government of Canada Honours National Historic Significance of Margaret Laurence (1926-1987)",
"updated": "2018-08-10T14:15:00-04:00",
"link": "https://www.canada.ca/en/parks-canada/news/2018/08/government-of-canada-honours-national-historic-significance-of-margaret-laurence-1926-1987.html"
},
{
"title": "Manitoba’s 2018‒19 federal Gas Tax Fund allocations",
"updated": "2018-08-10T10:35:00-04:00",
"link": "https://www.canada.ca/en/office-infrastructure/news/2018/08/manitobas-201819-federal-gas-tax-fund-allocations.html"
},
{
"title": "Building stronger communities across Manitoba with federal Gas Tax Fund&#xa0;",
"updated": "2018-08-10T10:35:00-04:00",
"link": "https://www.canada.ca/en/office-infrastructure/news/2018/08/building-stronger-communities-across-manitoba-with-federal-gas-tax-fund.html"
},
{
"title": "Government of Canada Recognizes the National Historic Significance of Margaret Laurence (1926-1987)",
"updated": "2018-08-08T15:04:05-04:00",
"link": "https://www.canada.ca/en/parks-canada/news/2018/08/government-of-canada-recognizes-the-national-historic-significance-of-margaret-laurence-1926-1987.html"
},
{
"title": "Governments highlight funded activities for research and industry service providers in Manitoba under the Canadian Agricultural Partnership",
"updated": "2018-08-02T12:54:42-04:00",
"link": "https://www.canada.ca/en/agriculture-agri-food/news/2018/08/governments-highlight-funded-activities-for-research-and-industry-service-providers-in-manitoba-under-the-canadian-agricultural-partnership.html"
}
]
}
}
Oops, something went wrong.

0 comments on commit 8eb8c25

Please sign in to comment.
You can’t perform that action at this time.