Client library for BC Gov News API Service 1.0
npm install --save @datafire/gov_bc_ca_news
let gov_bc_ca_news = require('@datafire/gov_bc_ca_news').create();
.then(data => {
console.log(data);
});
News API
Get a Facebook post based on a Uri
gov_bc_ca_news.FacebookPosts_GetByUri({
"api-version": ""
}, context)
- input
object
- uri
string
- api-version required
string
: The requested API version
- uri
- output FacebookPost
Returns the top level content for the home page
gov_bc_ca_news.Home_Get({
"api-version": ""
}, context)
- input
object
- api-version required
string
: The requested API version
- api-version required
- output Home
Get all ministries
gov_bc_ca_news.Ministries_GetAll({
"api-version": ""
}, context)
- input
object
- api-version required
string
: The requested API version
- api-version required
- output
array
- items Ministry
Get the Ministry associated with the ministry key
gov_bc_ca_news.Ministries_GetOne({
"key": "",
"api-version": ""
}, context)
- input
object
- key required
string
- api-version required
string
: The requested API version
- key required
- output Ministry
Get the Minister associated with the ministry key
gov_bc_ca_news.Ministries_GetMinister({
"key": "",
"api-version": ""
}, context)
- input
object
- key required
string
- api-version required
string
: The requested API version
- key required
- output Minister
Get all newsletters
gov_bc_ca_news.Newsletters_GetAll({
"api-version": ""
}, context)
- input
object
- api-version required
string
: The requested API version
- api-version required
- output
array
- items Newsletter
Get the image object reference by of a Newsletter Edition associated with the image guid
gov_bc_ca_news.Newsletters_GetImage({
"guid": "",
"api-version": ""
}, context)
- input
object
- guid required
string
- api-version required
string
: The requested API version
- guid required
- output EditionImage
Get a specific newsletter
gov_bc_ca_news.Newsletters_GetOne({
"newsletterKey": "",
"api-version": ""
}, context)
- input
object
- newsletterKey required
string
- api-version required
string
: The requested API version
- newsletterKey required
- output Newsletter
Returns a specific edition of a newsletter
gov_bc_ca_news.Newsletters_GetEdition({
"newsletterKey": "",
"editionKey": "",
"api-version": ""
}, context)
- input
object
- newsletterKey required
string
- editionKey required
string
- api-version required
string
: The requested API version
- newsletterKey required
- output Edition
Get an article belonging to a Newsletter edition
gov_bc_ca_news.Newsletters_GetArticle({
"newsletterKey": "",
"editionKey": "",
"articleKey": "",
"api-version": ""
}, context)
- input
object
- newsletterKey required
string
- editionKey required
string
- articleKey required
string
- api-version required
string
: The requested API version
- newsletterKey required
- output Article
Get the posts associated with the keys in the list passed in.
gov_bc_ca_news.Posts_Get({
"api-version": ""
}, context)
- input
object
- postKeys
array
- api-version required
string
: The requested API version
- postKeys
- output
array
- items Post
Get all keys for the specified index (newsroom or category)
gov_bc_ca_news.Posts_GetAllKeys({
"indexKind": "",
"indexKey": "",
"api-version": ""
}, context)
- input
object
- indexKind required
string
: home or one of categories - indexKey required
string
: default or one key of the categories (ministries, sectors, services, tags, themes) - postKind
string
: One of: releases, stories, factsheets, updates or default (releases+stories+factsheets) - count
integer
: number of posts to return - skip
integer
: number of posts to skip - api-version required
string
: The requested API version
- indexKind required
- output
array
- items KeyValuePair_2
Get the post key associated with the reference.
gov_bc_ca_news.Posts_GetKeyFromReference({
"reference": "",
"api-version": ""
}, context)
- input
object
- reference required
string
- api-version required
string
: The requested API version
- reference required
- output KeyValuePair_2
Get the latest posts of postKind for the specified index (default or category)
gov_bc_ca_news.Posts_GetLatest({
"indexKind": "",
"indexKey": "",
"api-version": ""
}, context)
- input
object
- indexKind required
string
: home or one of categories - indexKey required
string
: default or one key of the categories (ministries, sectors, services, tags, themes) - postKind
string
: One of: releases, stories, factsheets, updates or default (releases+stories except top/feature) - count
integer
: number of posts to return - skip
integer
: number of posts to skip - api-version required
string
: The requested API version
- indexKind required
- output
array
- items Post
Gets the latest Social Media post for the social media type passed in.
gov_bc_ca_news.Posts_GetLatestMediaUri({
"mediaType": "",
"api-version": ""
}, context)
- input
object
- mediaType required
string
- api-version required
string
: The requested API version
- mediaType required
- output
string
Get the post associated with the key
gov_bc_ca_news.Posts_GetOne({
"key": "",
"api-version": ""
}, context)
- input
object
- key required
string
- api-version required
string
: The requested API version
- key required
- output Post
Get all resource links
gov_bc_ca_news.ResourceLinks_GetAll({
"api-version": ""
}, context)
- input
object
- api-version required
string
: The requested API version
- api-version required
- output
array
- items ResourceLink
Get all Sectors
gov_bc_ca_news.Sectors_GetAll({
"api-version": ""
}, context)
- input
object
- api-version required
string
: The requested API version
- api-version required
- output
array
- items Sector
Get the sector associated with the key
gov_bc_ca_news.Sectors_GetOne({
"key": "",
"api-version": ""
}, context)
- input
object
- key required
string
- api-version required
string
: The requested API version
- key required
- output Sector
Get all Services
gov_bc_ca_news.Services_GetAll({
"api-version": ""
}, context)
- input
object
- api-version required
string
: The requested API version
- api-version required
- output
array
- items Service
Get the service associated with the passed key
gov_bc_ca_news.Services_GetOne({
"key": "",
"api-version": ""
}, context)
- input
object
- key required
string
- api-version required
string
: The requested API version
- key required
- output Service
Get all Slides
gov_bc_ca_news.Slides_GetAll({
"api-version": ""
}, context)
- input
object
- api-version required
string
: The requested API version
- api-version required
- output
array
- items Slide
Get the slide associated to the id
gov_bc_ca_news.Slides_GetOne({
"id": "",
"api-version": ""
}, context)
- input
object
- id required
string
- api-version required
string
: The requested API version
- id required
- output Slide
Get all Tags
gov_bc_ca_news.Tags_GetAll({
"api-version": ""
}, context)
- input
object
- api-version required
string
: The requested API version
- api-version required
- output
array
- items Tag
Get the Tag associated with the key
gov_bc_ca_news.Tags_GetOne({
"key": "",
"api-version": ""
}, context)
- input
object
- key required
string
- api-version required
string
: The requested API version
- key required
- output Tag
Get all Themes
gov_bc_ca_news.Themes_GetAll({
"api-version": ""
}, context)
- input
object
- api-version required
string
: The requested API version
- api-version required
- output
array
- items Theme
Get the Theme associated with the key
gov_bc_ca_news.Themes_GetOne({
"key": "",
"api-version": ""
}, context)
- input
object
- key required
string
- api-version required
string
: The requested API version
- key required
- output Theme
- Article
object
- editionName
string
- htmlBody
string
- key
string
- timestamp
string
- editionName
- Asset
object
- key
string
- label
string
- length
integer
- key
- Category
object
- audioUri
string
- featurePostKey
string
- flickrUri
string
- isActive
boolean
- name
string
- topPostKey
string
- twitterFeedUsername
string
- youtubeUri
string
- featurePostKey
string
- kind
string
- name
string
- topPostKey
string
- key
string
- timestamp
string
- audioUri
- Contact
object
- emailAddress
string
- fullName
string
- mobileNumber
string
- phoneNumber
string
- emailAddress
- DataIndex
object
- featurePostKey
string
- kind
string
- name
string
- topPostKey
string
- key
string
- timestamp
string
- featurePostKey
- DataModel
object
- key
string
- timestamp
string
- key
- Document
object
- byline
string
- contacts
array
- items DocumentContact
- detailsHtml
string
- headline
string
- languageId
integer
- pageTitle
string
- subheadline
string
- byline
- DocumentContact
object
- details
string
- title
string
- details
- Edition
object
- htmlBody
string
- name
string
- key
string
- timestamp
string
- htmlBody
- EditionImage
object
- fileName
string
- imageBytes
string
- imageType
string
- key
string
- timestamp
string
- fileName
- FacebookPost
object
- content
string
- facebookObjectId
integer
- pictureUri
string
- postComments
integer
- postLikes
integer
- postShares
integer
- poster
string
- posterLikes
integer
- posterLogo
string
- posterSubtitle
string
- type
string
- key
string
- timestamp
string
- content
- Home
object
- featurePostKey
string
- liveWebcastFlashMediaManifestUrl
string
- liveWebcastM3uPlaylist
string
- name
string
- topPostKey
string
- featurePostKey
string
- kind
string
- name
string
- topPostKey
string
- key
string
- timestamp
string
- featurePostKey
- KeyValuePair_2
object
- key
string
- value
string
- key
- Minister
object
- details
string
- emailHtml
string
- headline
string
- photo
string
- post
string
- summary
string
- key
string
- timestamp
string
- details
- Ministry
object
- audioUri
string
- childMinistryKey
string
- contactUser Contact
- displayAdditionalName
string
- featurePostKey
string
- flickrUri
string
- isActive
boolean
- ministerName
string
- ministryUrl
string
- name
string
- newsletterLinks
array
- items ResourceLink
- parentMinistryKey
string
- secondContactUser Contact
- serviceLinks
array
- items ResourceLink
- topPostKey
string
- topicLinks
array
- items ResourceLink
- twitterFeedUsername
string
- weekendContactNumber
string
- youtubeUri
string
- audioUri
string
- featurePostKey
string
- flickrUri
string
- isActive
boolean
- name
string
- topPostKey
string
- twitterFeedUsername
string
- youtubeUri
string
- featurePostKey
string
- kind
string
- name
string
- topPostKey
string
- key
string
- timestamp
string
- audioUri
- Newsletter
object
- description
string
- editions
array
- items KeyValuePair_2
- ministryName
string
- name
string
- key
string
- timestamp
string
- description
- Post
object
- assetUrl
string
- atomId
string
- azureAssets
array
- items Asset
- documents
array
- items Document
- facebookPictureUri
string
- hasMediaAssets
boolean
- isNewsOnDemand
boolean
- keywords
string
- kind
string
- leadMinistryKey
string
- location
string
- ministryKeys
array
- items
string
- items
- publishDate
string
- redirectUri
string
- reference
string
- sectorKeys
array
- items
string
- items
- serviceKeys
array
- items
string
- items
- socialMediaHeadline
string
- socialMediaSummary
string
- summary
string
- key
string
- timestamp
string
- assetUrl
- ResourceLink
object
- uri
string
- key
string
- timestamp
string
- uri
- Sector
object
- audioUri
string
- featurePostKey
string
- flickrUri
string
- isActive
boolean
- name
string
- topPostKey
string
- twitterFeedUsername
string
- youtubeUri
string
- audioUri
string
- featurePostKey
string
- flickrUri
string
- isActive
boolean
- name
string
- topPostKey
string
- twitterFeedUsername
string
- youtubeUri
string
- featurePostKey
string
- kind
string
- name
string
- topPostKey
string
- key
string
- timestamp
string
- audioUri
- Service
object
- audioUri
string
- featurePostKey
string
- flickrUri
string
- isActive
boolean
- name
string
- topPostKey
string
- twitterFeedUsername
string
- youtubeUri
string
- audioUri
string
- featurePostKey
string
- flickrUri
string
- isActive
boolean
- name
string
- topPostKey
string
- twitterFeedUsername
string
- youtubeUri
string
- featurePostKey
string
- kind
string
- name
string
- topPostKey
string
- key
string
- timestamp
string
- audioUri
- Slide
object
- actionLabel
string
- actionUri
string
- facebookPostUri
string
- headline
string
- image
string
- imageType
string
- justify
string
- slideId
string
- summary
string
- key
string
- timestamp
string
- actionLabel
- Tag
object
- audioUri
string
- featurePostKey
string
- flickrUri
string
- isActive
boolean
- name
string
- topPostKey
string
- twitterFeedUsername
string
- youtubeUri
string
- audioUri
string
- featurePostKey
string
- flickrUri
string
- isActive
boolean
- name
string
- topPostKey
string
- twitterFeedUsername
string
- youtubeUri
string
- featurePostKey
string
- kind
string
- name
string
- topPostKey
string
- key
string
- timestamp
string
- audioUri
- Theme
object
- audioUri
string
- featurePostKey
string
- flickrUri
string
- isActive
boolean
- name
string
- topPostKey
string
- twitterFeedUsername
string
- youtubeUri
string
- audioUri
string
- featurePostKey
string
- flickrUri
string
- isActive
boolean
- name
string
- topPostKey
string
- twitterFeedUsername
string
- youtubeUri
string
- featurePostKey
string
- kind
string
- name
string
- topPostKey
string
- key
string
- timestamp
string
- audioUri