Skip to content

Latest commit

 

History

History

hubhopper

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

@datafire/hubhopper

Client library for Hubhopper Partner Integration API(s) - Production

Installation and Usage

npm install --save @datafire/hubhopper
let 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.

Output

categories.categoryId.get

Get specific content category.

hubhopper.categories.categoryId.get({
  "categoryId": ""
}, context)

Input

  • input object
    • categoryId required string: Unique qualifier for a category.

Output

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.

Output

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.

Output

podcasts.podcastId.get

Get a single Podcast.

hubhopper.podcasts.podcastId.get({
  "podcastId": ""
}, context)

Input

  • input object
    • podcastId required string: Unique qualifier for a podcast.

Output

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.

Output

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.

Output

Definitions

CategoryList

  • CategoryListOutputModel object

CategoryListCategoriesItem

  • CategoryListCategoriesItem object
    • id integer
    • name string
    • url string

Empty

  • Empty Schema object

Error

  • Error Schema object
    • message string

LanguageItem

  • LanguageItem object
    • code string
    • id integer
    • name string

LanguageList

  • LanguageList object
    • languages array
    • noOfPages integer
    • page integer
    • pageSize integer
    • total integer

PodcastEpisodeList

  • PodcastEpisodeListOutputModel object

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
    • podcastId integer
    • podcastUrl string
    • publishTime string
    • publishedOn integer
    • title string

PodcastList

  • PodcastListOutputModel object

PodcastListPodcastsItem

  • PodcastListPodcastsItem object
    • author string
    • category object
      • id integer
      • name string
    • categoryId integer
    • description string
    • episodes integer
    • featured object
      • id integer
      • name string
    • featuredId integer
    • image string
    • keywords string
    • latestEpisodeTime string
    • podcastId integer
    • title string
    • url string

SingleCategory

SingleCategoryCategory

  • SingleCategoryCategory object
    • id integer
    • name string
    • url string

SinglePodcast

SinglePodcastPodcast

  • SinglePodcastPodcast object
    • author string
    • category object
      • id integer
      • name string
    • categoryId integer
    • description string
    • episodes integer
    • featured object
      • id integer
      • name string
    • featuredId integer
    • image string
    • keywords string
    • latest_episode_time string
    • podcastId integer
    • title string
    • url string
    • website string