3.0.0 • Published 5 years ago
@datafire/hubhopper v3.0.0
@datafire/hubhopper
Client library for Hubhopper Partner Integration API(s) - Production
Installation and Usage
npm install --save @datafire/hubhopperlet hubhopper = require('@datafire/hubhopper').create({
api_key: "",
partner_id: ""
});
.then(data => {
console.log(data);
});Description
This is an interactive document explaining the API(s) that could be used to fetch data from Hubhopper. Use the api key provided to authorize x-api-key and test the API(s). The output data models are also available for reference.
Actions
categories.get
Get the list of all content categories.
hubhopper.categories.get({}, context)Input
- input
object- pageSize
string: Provide the size of the page to fetch. - page
string: Provide the page number to fetch.
- pageSize
Output
- output CategoryList
categories.categoryId.get
Get specific content category.
hubhopper.categories.categoryId.get({
"categoryId": ""
}, context)Input
- input
object- categoryId required
string: Unique qualifier for a category.
- categoryId required
Output
- output SingleCategory
categories.categoryId.podcasts.get
Get a list of all podcasts under a category.
hubhopper.categories.categoryId.podcasts.get({
"categoryId": ""
}, context)Input
- input
object- categoryId required
string: Unique qualifier for a category. - page
string: Provide the page number to fetch. - pageSize
string: Provide the size of the page to fetch. - order
string: Order the items by 'newest' | 'random' - filters
string: Takes filters like 'lang' in a url encoded json.
- categoryId required
Output
- output PodcastList
podcasts.get
Get the list of all podcasts.
hubhopper.podcasts.get({}, context)Input
- input
object- page
string: Provide the page number to fetch. - pageSize
string: Provide the size of the page to fetch. - order
string: Order the items by 'newest' | 'random' - filters
string: Takes filters like 'lang' in a url encoded json.
- page
Output
- output PodcastList
podcasts.podcastId.get
Get a single Podcast.
hubhopper.podcasts.podcastId.get({
"podcastId": ""
}, context)Input
- input
object- podcastId required
string: Unique qualifier for a podcast.
- podcastId required
Output
- output SinglePodcast
podcasts.podcastId.episodes.get
Get a list of all episodes under a podcast.
hubhopper.podcasts.podcastId.episodes.get({
"podcastId": ""
}, context)Input
- input
object- page
string: Provide the page number to fetch. - pageSize
string: Provide the size of the page to fetch. - order
string: Order the items by 'newest' | 'random' - filters
string: Takes filters like 'lang' in a url encoded json. - podcastId required
string: Unique qualifier for a podcast.
- page
Output
- output PodcastEpisodeList
util.languages.get
hubhopper.util.languages.get({}, context)Input
- input
object- pageSize
string: Provide the size of the page to fetch. - page
string: Provide the page number to fetch.
- pageSize
Output
- output LanguageList
Definitions
CategoryList
- CategoryListOutputModel
object- categories
array - noOfPages
integer - page
integer - pageSize
integer - total
integer
- categories
CategoryListCategoriesItem
- CategoryListCategoriesItem
object- id
integer - name
string - url
string
- id
Empty
- Empty Schema
object
Error
- Error Schema
object- message
string
- message
LanguageItem
- LanguageItem
object- code
string - id
integer - name
string
- code
LanguageList
- LanguageList
object- languages
array- items LanguageItem
- noOfPages
integer - page
integer - pageSize
integer - total
integer
- languages
PodcastEpisodeList
- PodcastEpisodeListOutputModel
object- episodes
array - noOfPages
integer - page
integer - pageSize
integer - total
integer
- episodes
PodcastEpisodeListEpisodesItem
- PodcastEpisodeListEpisodesItem
object- author
string - description
string - episodeId
integer - episodeUrl
string - image
string - isNew
boolean - play
object- duration
string - durationInSec
integer - size
string - type
string - url
string
- duration
- podcastId
integer - podcastUrl
string - publishTime
string - publishedOn
integer - title
string
- author
PodcastList
- PodcastListOutputModel
object- noOfPages
integer - page
integer - pageSize
integer - podcasts
array- items PodcastListPodcastsItem
- total
integer
- noOfPages
PodcastListPodcastsItem
- PodcastListPodcastsItem
object- author
string - category
object- id
integer - name
string
- id
- categoryId
integer - description
string - episodes
integer - featured
object- id
integer - name
string
- id
- featuredId
integer - image
string - keywords
string - latestEpisodeTime
string - podcastId
integer - title
string - url
string
- author
SingleCategory
- SingleCategoryOutputModel
object: Model to fetch a single category.- category SingleCategoryCategory
SingleCategoryCategory
- SingleCategoryCategory
object- id
integer - name
string - url
string
- id
SinglePodcast
- SinglePodcastOutputModel
object- podcast SinglePodcastPodcast
SinglePodcastPodcast
- SinglePodcastPodcast
object- author
string - category
object- id
integer - name
string
- id
- categoryId
integer - description
string - episodes
integer - featured
object- id
integer - name
string
- id
- featuredId
integer - image
string - keywords
string - latest_episode_time
string - podcastId
integer - title
string - url
string - website
string
- author
3.0.0
5 years ago