@datafire/gov_bc_ca_news v4.0.0
@datafire/gov_bc_ca_news
Client library for BC Gov News API Service 1.0
Installation and Usage
npm install --save @datafire/gov_bc_ca_newslet gov_bc_ca_news = require('@datafire/gov_bc_ca_news').create();
.then(data => {
console.log(data);
});Description
News API
Actions
FacebookPosts_GetByUri
Get a Facebook post based on a Uri
gov_bc_ca_news.FacebookPosts_GetByUri({
"api-version": ""
}, context)Input
- input
object- uri
string - api-version required
string: The requested API version
- uri
Output
- output FacebookPost
Home_Get
Returns the top level content for the home page
gov_bc_ca_news.Home_Get({
"api-version": ""
}, context)Input
- input
object- api-version required
string: The requested API version
- api-version required
Output
- output Home
Ministries_GetAll
Get all ministries
gov_bc_ca_news.Ministries_GetAll({
"api-version": ""
}, context)Input
- input
object- api-version required
string: The requested API version
- api-version required
Output
- output
array- items Ministry
Ministries_GetOne
Get the Ministry associated with the ministry key
gov_bc_ca_news.Ministries_GetOne({
"key": "",
"api-version": ""
}, context)Input
- input
object- key required
string - api-version required
string: The requested API version
- key required
Output
- output Ministry
Ministries_GetMinister
Get the Minister associated with the ministry key
gov_bc_ca_news.Ministries_GetMinister({
"key": "",
"api-version": ""
}, context)Input
- input
object- key required
string - api-version required
string: The requested API version
- key required
Output
- output Minister
Newsletters_GetAll
Get all newsletters
gov_bc_ca_news.Newsletters_GetAll({
"api-version": ""
}, context)Input
- input
object- api-version required
string: The requested API version
- api-version required
Output
- output
array- items Newsletter
Newsletters_GetImage
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
- input
object- guid required
string - api-version required
string: The requested API version
- guid required
Output
- output EditionImage
Newsletters_GetOne
Get a specific newsletter
gov_bc_ca_news.Newsletters_GetOne({
"newsletterKey": "",
"api-version": ""
}, context)Input
- input
object- newsletterKey required
string - api-version required
string: The requested API version
- newsletterKey required
Output
- output Newsletter
Newsletters_GetEdition
Returns a specific edition of a newsletter
gov_bc_ca_news.Newsletters_GetEdition({
"newsletterKey": "",
"editionKey": "",
"api-version": ""
}, context)Input
- input
object- newsletterKey required
string - editionKey required
string - api-version required
string: The requested API version
- newsletterKey required
Output
- output Edition
Newsletters_GetArticle
Get an article belonging to a Newsletter edition
gov_bc_ca_news.Newsletters_GetArticle({
"newsletterKey": "",
"editionKey": "",
"articleKey": "",
"api-version": ""
}, context)Input
- input
object- newsletterKey required
string - editionKey required
string - articleKey required
string - api-version required
string: The requested API version
- newsletterKey required
Output
- output Article
Posts_Get
Get the posts associated with the keys in the list passed in.
gov_bc_ca_news.Posts_Get({
"api-version": ""
}, context)Input
- input
object- postKeys
array - api-version required
string: The requested API version
- postKeys
Output
- output
array- items Post
Posts_GetAllKeys
Get all keys for the specified index (newsroom or category)
gov_bc_ca_news.Posts_GetAllKeys({
"indexKind": "",
"indexKey": "",
"api-version": ""
}, context)Input
- 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
- output
array- items KeyValuePair_2
Posts_GetKeyFromReference
Get the post key associated with the reference.
gov_bc_ca_news.Posts_GetKeyFromReference({
"reference": "",
"api-version": ""
}, context)Input
- input
object- reference required
string - api-version required
string: The requested API version
- reference required
Output
- output KeyValuePair_2
Posts_GetLatest
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
- 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
- output
array- items Post
Posts_GetLatestMediaUri
Gets the latest Social Media post for the social media type passed in.
gov_bc_ca_news.Posts_GetLatestMediaUri({
"mediaType": "",
"api-version": ""
}, context)Input
- input
object- mediaType required
string - api-version required
string: The requested API version
- mediaType required
Output
- output
string
Posts_GetOne
Get the post associated with the key
gov_bc_ca_news.Posts_GetOne({
"key": "",
"api-version": ""
}, context)Input
- input
object- key required
string - api-version required
string: The requested API version
- key required
Output
- output Post
ResourceLinks_GetAll
Get all resource links
gov_bc_ca_news.ResourceLinks_GetAll({
"api-version": ""
}, context)Input
- input
object- api-version required
string: The requested API version
- api-version required
Output
- output
array- items ResourceLink
Sectors_GetAll
Get all Sectors
gov_bc_ca_news.Sectors_GetAll({
"api-version": ""
}, context)Input
- input
object- api-version required
string: The requested API version
- api-version required
Output
- output
array- items Sector
Sectors_GetOne
Get the sector associated with the key
gov_bc_ca_news.Sectors_GetOne({
"key": "",
"api-version": ""
}, context)Input
- input
object- key required
string - api-version required
string: The requested API version
- key required
Output
- output Sector
Services_GetAll
Get all Services
gov_bc_ca_news.Services_GetAll({
"api-version": ""
}, context)Input
- input
object- api-version required
string: The requested API version
- api-version required
Output
- output
array- items Service
Services_GetOne
Get the service associated with the passed key
gov_bc_ca_news.Services_GetOne({
"key": "",
"api-version": ""
}, context)Input
- input
object- key required
string - api-version required
string: The requested API version
- key required
Output
- output Service
Slides_GetAll
Get all Slides
gov_bc_ca_news.Slides_GetAll({
"api-version": ""
}, context)Input
- input
object- api-version required
string: The requested API version
- api-version required
Output
- output
array- items Slide
Slides_GetOne
Get the slide associated to the id
gov_bc_ca_news.Slides_GetOne({
"id": "",
"api-version": ""
}, context)Input
- input
object- id required
string - api-version required
string: The requested API version
- id required
Output
- output Slide
Tags_GetAll
Get all Tags
gov_bc_ca_news.Tags_GetAll({
"api-version": ""
}, context)Input
- input
object- api-version required
string: The requested API version
- api-version required
Output
- output
array- items Tag
Tags_GetOne
Get the Tag associated with the key
gov_bc_ca_news.Tags_GetOne({
"key": "",
"api-version": ""
}, context)Input
- input
object- key required
string - api-version required
string: The requested API version
- key required
Output
- output Tag
Themes_GetAll
Get all Themes
gov_bc_ca_news.Themes_GetAll({
"api-version": ""
}, context)Input
- input
object- api-version required
string: The requested API version
- api-version required
Output
- output
array- items Theme
Themes_GetOne
Get the Theme associated with the key
gov_bc_ca_news.Themes_GetOne({
"key": "",
"api-version": ""
}, context)Input
- input
object- key required
string - api-version required
string: The requested API version
- key required
Output
- output Theme
Definitions
Article
- Article
object- editionName
string - htmlBody
string - key
string - timestamp
string
- editionName
Asset
- Asset
object- key
string - label
string - length
integer
- key
Category
- 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
- Contact
object- emailAddress
string - fullName
string - mobileNumber
string - phoneNumber
string
- emailAddress
DataIndex
- DataIndex
object- featurePostKey
string - kind
string - name
string - topPostKey
string - key
string - timestamp
string
- featurePostKey
DataModel
- DataModel
object- key
string - timestamp
string
- key
Document
- Document
object- byline
string - contacts
array- items DocumentContact
- detailsHtml
string - headline
string - languageId
integer - pageTitle
string - subheadline
string
- byline
DocumentContact
- DocumentContact
object- details
string - title
string
- details
Edition
- Edition
object- htmlBody
string - name
string - key
string - timestamp
string
- htmlBody
EditionImage
- EditionImage
object- fileName
string - imageBytes
string - imageType
string - key
string - timestamp
string
- fileName
FacebookPost
- 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
- 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
- KeyValuePair_2
object- key
string - value
string
- key
Minister
- Minister
object- details
string - emailHtml
string - headline
string - photo
string - post
string - summary
string - key
string - timestamp
string
- details
Ministry
- 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
- Newsletter
object- description
string - editions
array- items KeyValuePair_2
- ministryName
string - name
string - key
string - timestamp
string
- description
Post
- 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
- ResourceLink
object- uri
string - key
string - timestamp
string
- uri
Sector
- 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
- 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
- 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
- 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
- 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